/* TRT Rapid Pen Instructions Section Styles */

.instructions-section {
    background: linear-gradient(135deg, #191c24 0%, #1f2230 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.instructions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(16, 191, 198, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(54, 92, 77, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.instructions-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.instructions-header .badge-label {
    display: inline-block;
    background: #365c4d;
    color: #10bfc6;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.instructions-header h2 {
    font-family: "Oswald", sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #e8e8e8;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.instructions-header p {
    font-family: "Lato", sans-serif;
    font-size: 16px;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
}

.instructions-container {
    position: relative;
    z-index: 1;
}

.instruction-step {
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.instruction-step.reverse {
    flex-direction: row-reverse;
}

.instruction-step-content {
    flex: 1;
}

.instruction-step-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.instruction-step-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(16, 191, 198, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-step-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(16, 191, 198, 0.25);
}

/* Step number badge */
.step-badge {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10bfc6 0%, #0fa6ad 100%);
    color: #191c24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(16, 191, 198, 0.3);
    font-family: "Oswald", sans-serif;
}

.instruction-step-content h3 {
    font-family: "Oswald", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #10bfc6;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.instruction-step-content p {
    font-family: "Lato", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #d1d1d1;
    margin-bottom: 15px;
}

.instruction-step-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-step-content li {
    font-family: "Lato", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #d1d1d1;
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
}

.instruction-step-content li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10bfc6;
    font-weight: bold;
    font-size: 16px;
}

/* Border accent */
.instruction-step-content::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #10bfc6, transparent);
    border-radius: 2px;
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.instruction-step-content {
    position: relative;
    padding-left: 30px;
}

/* Important Note Box */
.instruction-note {
    background: linear-gradient(135deg, rgba(16, 191, 198, 0.1) 0%, rgba(54, 92, 77, 0.1) 100%);
    border-left: 4px solid #10bfc6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.instruction-note h4 {
    color: #10bfc6;
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.instruction-note p {
    color: #a0a0a0;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    margin: 0;
}

/* Divider between steps */
.instruction-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #10bfc6, transparent);
    margin: 60px 0;
    opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 992px) {
    .instruction-step,
    .instruction-step.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .instruction-step-content,
    .instruction-step-image {
        flex: 1 100%;
    }

    .instructions-section {
        padding: 40px 0;
    }

    .instructions-header h2 {
        font-size: 2rem;
    }

    .instruction-step-content h3 {
        font-size: 1.5rem;
    }

    .step-badge {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .instructions-section {
        padding: 30px 0;
    }

    .instructions-header {
        margin-bottom: 40px;
    }

    .instructions-header h2 {
        font-size: 1.75rem;
    }

    .instruction-step {
        margin-bottom: 50px;
        gap: 20px;
    }

    .instruction-step-content h3 {
        font-size: 1.3rem;
    }

    .instruction-step-content p,
    .instruction-step-content li {
        font-size: 14px;
    }

    .step-badge {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .instruction-divider {
        margin: 40px 0;
    }
}

@media (max-width: 576px) {
    .instructions-header h2 {
        font-size: 1.5rem;
        letter-spacing: 0;
    }

    .instruction-step-content h3 {
        font-size: 1.1rem;
    }

    .instruction-step-content {
        padding-left: 0;
    }

    .instruction-step-content::before {
        display: none;
    }

    .instruction-note {
        padding: 15px;
    }
}

/* Animation for fade-in on scroll */
.instruction-step {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.instruction-step:nth-child(1) {
    animation-delay: 0.1s;
}

.instruction-step:nth-child(2) {
    animation-delay: 0.2s;
}

.instruction-step:nth-child(3) {
    animation-delay: 0.3s;
}

.instruction-step:nth-child(4) {
    animation-delay: 0.4s;
}

.instruction-step:nth-child(5) {
    animation-delay: 0.5s;
}

.instruction-step:nth-child(6) {
    animation-delay: 0.6s;
}

/* Hover effects */
.instruction-step:hover .step-badge {
    box-shadow: 0 8px 25px rgba(16, 191, 198, 0.4);
    transform: translateY(-3px);
}

.instruction-step:hover .instruction-step-content h3 {
    color: #16ebe5;
    text-shadow: 0 0 10px rgba(16, 191, 198, 0.3);
}
