#main-header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#main-content {
    flex: 1;
}

#main-footer {
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

#form-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1rem !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

#form-image-col {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0e6ff 100%);
    position: relative;
    min-height: 300px;
}

#form-image-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#form-illustration {
    max-width: 600px;
    width: 100%;
    height: auto;
}

#form-image-text {
    text-align: center;
    margin-top: 1.5rem;
}

#form-image-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

#form-image-text p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

#form-col {
    padding: 0;
}

#form-card {
    padding: 2.5rem;
}

#form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 2rem;
}

#form-actions {
    margin-top: 1.5rem;
}

#success-icon {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    70% {
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-stagger-1 { animation-delay: 0.1s; }
.animate-stagger-2 { animation-delay: 0.3s; }
.animate-stagger-3 { animation-delay: 0.5s; }
.animate-stagger-4 { animation-delay: 0.7s; }
.animate-stagger-5 { animation-delay: 0.9s; }

#form-wrapper {
    animation: fadeInUp 0.5s ease;
}

.checkmark-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.checkmark-svg {
    width: 80px;
    height: 80px;
    animation: scaleIn 0.4s ease forwards;
}

.checkmark-circle {
    stroke: #28a745;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    fill: none;
    animation: strokeIn 0.5s ease forwards;
}

.checkmark-check {
    stroke: #28a745;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    fill: none;
    animation: strokeIn 0.35s 0.4s ease forwards;
}

@keyframes strokeIn {
    to { stroke-dashoffset: 0; }
}

.form-label {
    font-weight: 500;
    color: #333;
}

.form-control,
.form-select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    transform: none;
    box-shadow: none;
}

form:has(.btn-primary:disabled) .btn-primary {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

@media (max-width: 767.98px) {
    #form-image-col {
        border-radius: 1rem 1rem 0 0 !important;
        min-height: 220px;
    }

    #form-illustration {
        max-width: 600px;
    }

    #form-image-text h3 {
        font-size: 1.1rem;
    }

    #form-card {
        padding: 1.5rem;
    }

    #form-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    #form-image-col {
        border-radius: 1rem 0 0 1rem !important;
    }

    #form-image-content {
        padding: 2.5rem 1.5rem;
    }

    #form-illustration {
        max-width: 600px;
    }
}

@media (min-width: 992px) {
    #form-illustration {
        max-width: 600px;
    }
}

#flash-error {
    max-width: 1000px;
    margin: 0 auto 1rem;
    border-radius: 8px;
}

#success-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

#success-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #28a745;
    opacity: 0;
}

#success-text {
    font-size: 1.1rem;
    color: #555;
    max-width: 400px;
    margin: 1rem auto 2rem;
    line-height: 1.6;
    opacity: 0;
}

#success-btn {
    opacity: 0;
}

#termsModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

#termsModal .modal-body {
    background: #fff;
    padding: 1rem;
}

#terms-iframe {
    display: block;
    border-radius: 8px;
}
