/* 
 * Requirements Form with DSA Page Style
 * Matches the Royal Blue & Warm Orange theme from DSA page
 */

:root {
    --royal-blue: #1E3A8A;
    --royal-blue-light: #2D4EA0;
    --royal-blue-dark: #15296B;
    --warm-orange: #FF7A00;
    --warm-orange-light: #FF9633;
    --warm-orange-dark: #E66E00;
    --light-gray: #F3F4F6;
    --medium-gray: #E5E7EB;
    --dark-gray: #6B7280;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Page Header - Match DSA page styling */
.page-header {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-light) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 70%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 70%;
    background: radial-gradient(circle at center, rgba(255, 122, 0, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.15rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Requirements Section */
.requirements-section {
    padding: 70px 0;
    background-color: var(--light-gray);
    position: relative;
}

/* Form Container */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Progress Steps */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    padding: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-progress:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: var(--medium-gray);
    z-index: 1;
    border-radius: 3px;
}

/* Progress indicators */
.form-progress[data-step="1"]:before {
    background: var(--medium-gray);
}

.form-progress[data-step="2"]:before {
    background: linear-gradient(to right, var(--warm-orange) 33.33%, var(--medium-gray) 33.33%);
}

.form-progress[data-step="3"]:before {
    background: linear-gradient(to right, var(--warm-orange) 66.66%, var(--medium-gray) 66.66%);
}

.form-progress[data-step="4"]:before {
    background: var(--warm-orange);
}

.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 12px;
    transition: all 0.4s ease;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.step-number:after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.progress-step.active .step-number {
    background-color: var(--warm-orange);
    position: relative;
    box-shadow: none;
}

.progress-step.active .step-number::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background-color: rgba(255, 122, 0, 0.15);
    z-index: -1;
}

.progress-step.active .step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--warm-orange);
    transform: translate(-50%, -50%);
    animation: pulse-circle 2s infinite;
    z-index: -1;
}

@keyframes pulse-circle {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.step-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.progress-step.active .step-name {
    color: var(--royal-blue);
    font-weight: 700;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeSlideIn 0.4s ease forwards;
    max-width: 800px;
    margin: 0 auto;
}

.form-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h2 {
    margin-bottom: 20px;
    color: var(--royal-blue);
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--warm-orange);
}

.form-step > p {
    margin-bottom: 30px;
    color: var(--dark-gray);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
    align-items: center;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
    font-size: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #333333;
    background-color: var(--white);
    height: 45px;
    box-shadow: none;
    box-sizing: border-box;
    outline: none;
}

textarea {
    height: auto;
    min-height: 120px;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
select:hover,
textarea:hover {
    border-color: #bdbdbd;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    background-color: #fafbff;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

::placeholder {
    color: #aaa;
    opacity: 0.7;
    font-size: 0.9rem;
    font-style: italic;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231E3A8A' viewBox='0 0 16 16'%3E%3Cpath d='M8 10.5a.5.5 0 0 1-.354-.146l-4-4a.5.5 0 1 1 .708-.708L8 9.293l3.646-3.647a.5.5 0 0 1 .708.708l-4 4A.5.5 0 0 1 8 10.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
    color: #444;
}

/* Form Buttons - Match DSA Button styles */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
    position: relative;
}

.form-step:first-child .form-buttons {
    justify-content: flex-end;
}

.form-buttons .btn {
    display: inline-block;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    min-width: 150px;
    box-shadow: var(--shadow);
    border: none;
    position: relative;
    overflow: hidden;
}

.form-buttons .btn-primary {
    background-color: var(--royal-blue);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
}

.form-buttons .btn-primary:hover {
    background-color: var(--royal-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.25);
}

.form-buttons .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.form-buttons .btn-primary:hover::after {
    transform: translateX(100%);
}

.form-buttons .btn-secondary {
    background-color: var(--white);
    color: var(--royal-blue);
    border: 1px solid var(--royal-blue);
}

.form-buttons .btn-secondary:hover {
    background-color: rgba(30, 58, 138, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* Review Section */
.review-container {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 35px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.review-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.review-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-section h3 {
    color: var(--royal-blue);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.review-section h3:before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 20px;
    background-color: var(--warm-orange);
    margin-right: 10px;
    border-radius: 3px;
}

.review-data p {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
}

.review-data p strong {
    width: 150px;
    min-width: 150px;
    font-weight: 600;
    color: #444;
}

.review-data p span {
    flex: 1;
    color: #666;
}

/* Terms Checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin: 30px 0;
}

.terms-checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 12px;
    margin-top: 5px;
    transform: scale(1.2);
}

.terms-checkbox label {
    font-weight: normal;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.terms-checkbox a {
    color: var(--royal-blue);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.terms-checkbox a:hover {
    color: var(--warm-orange);
    text-decoration: underline;
}

/* What Happens Next Section */
.next-steps {
    background-color: var(--light-gray);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.next-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 70%;
    background: radial-gradient(circle at center, rgba(30, 64, 175, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.next-steps::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 70%;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.section-title {
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    z-index: 1;
}

.section-title h2 {
    color: var(--royal-blue);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--warm-orange);
    margin: 0 auto;
    width: 80px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.next-step-box {
    flex: 1 1 200px;
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    min-width: 200px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
    animation-delay: calc(var(--animation-order) * 0.1s);
}

.next-step-box:nth-child(1) {
    --animation-order: 1;
}

.next-step-box:nth-child(2) {
    --animation-order: 2;
}

.next-step-box:nth-child(3) {
    --animation-order: 3;
}

.next-step-box:nth-child(4) {
    --animation-order: 4;
}

.next-step-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--royal-blue-light) 0%, var(--royal-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.25);
    position: relative;
    overflow: hidden;
}

.step-icon:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: -50%;
    left: -50%;
    background: linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(45deg) translateY(-100%); }
    50%, 100% { transform: rotate(45deg) translateY(100%); }
}

.step-icon i {
    color: var(--white);
    font-size: 32px;
    transform: scale(0.8);
    animation: iconPop 0.5s forwards;
    animation-delay: calc((var(--animation-order) * 0.1s) + 0.3s);
}

@keyframes iconPop {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.next-step-box h3 {
    color: var(--royal-blue);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.next-step-box p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 992px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .steps-container {
        justify-content: center;
        gap: 20px;
    }
    
    .next-step-box {
        flex: 0 0 calc(50% - 15px);
        max-width: 280px;
        margin-bottom: 20px;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
    }
    
    .step-icon i {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .next-steps {
        padding: 60px 0 40px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .next-step-box {
        flex: 0 0 100%;
        max-width: 320px;
        padding: 25px 15px;
    }
    
    .form-container {
        padding: 30px 20px;
        margin-top: 0;
    }
    
    .step-name {
        display: none;
    }
    
    .form-progress:before {
        top: 20px;
    }
    
    .form-buttons {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .form-buttons .btn {
        width: 100%;
        margin: 0;
    }
    
    .review-data p {
        flex-direction: column;
    }
    
    .review-data p strong {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .form-step h2 {
        font-size: 1.5rem;
    }
}
