/* Student Code Popup Styles */
:root {
    --primary-purple: var(--background-color, #5D3D68);
    --primary-purple-dark: color-mix(in srgb, var(--primary-purple) 78%, black);
}

.popup-body {
    background-color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.popup-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 60rem;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
}

.popup-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popup-header img {
    height: 2.5rem;
    width: auto;
}

.close-btn {
    color: #94a3b8;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #475569;
}

.popup-content {
    display: grid;
    grid-template-columns: 1fr;
    overflow-y: auto;
    max-height: calc(90vh - 73px);
}

.placement-completed-body {
    background-color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.main-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    max-width: 650px;
    width: 100%;
    padding: 50px 40px;
}

/* Success Icon */
.success-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.success-icon-bg {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d4f4dd 0%, #e8f5e9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark-circle {
    width: 35px;
    height: 35px;
    border: 3px solid #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mexico-checkmark {
    width: 20px;
    height: 20px;
    stroke: #4caf50;
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mexico-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
}

/* Info Box */
.blue-info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f4ff 100%);
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 36px 40px;
    margin-bottom: 35px;
}

.blue-info-box .info-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.target-icon-container {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    flex-shrink: 0;
}

.target-icon-container svg {
    width: 100%;
    height: 100%;
    display: block;
}

.info-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.mexico-info-text {
    font-size: 15px;
    font-weight: 400;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: center;
}

.mexico-info-text:last-child {
    margin-bottom: 0;
}

.mexico-btn-custom {
    flex: 1;
    padding: 10px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    transition: all 0.2s;
}

.btn-secondary-custom {
    background: #ffffff;
    color: #4a4a4a;
    border: 2px solid #d0d0d0;
}

.btn-secondary-custom:hover {
    border-color: #b0b0b0;
    background: #f8f8f8;
}

/* Footer Text */
.mexico-footer-text {
    font-size: 14px;
    font-weight: 400;
    color: #888888;
    text-align: center;
    line-height: 1.5;
}

.mexico-button-container {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-card {
        padding: 40px 30px;
    }

    .mexico-subtitle {
        font-size: 14px;
    }

    .info-title {
        font-size: 16px;
    }

    .mexico-info-text {
        font-size: 14px;
    }

    .mexico-button-container {
        flex-direction: column;
        gap: 16px;
    }

    .mexico-btn-custom {
        font-size: 16px;
    }
}
@media (min-width: 768px) {
    .popup-content {
        grid-template-columns: 1fr 1fr;
    }
}

.left-column {
    background-color: var(--primary-purple);
    padding: 3rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.left-content {
    max-width: 28rem;
    margin: 0 auto;
}

.left-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.left-content > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.dot-matrix-g {
    display: block;
    width: 100%;
    max-width: 314px;
    height: auto;
    margin-top: 1.5rem;
}

.dot-matrix-g .dot {
    fill: rgba(255, 255, 255, 0.15);
}

.dot-matrix-g .dot-active {
    fill: #fff;
}

.info-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-purple);
}

.info-text p {
    margin: 0;
}

.info-text .title {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.info-text .subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

.right-column {
    padding: 3rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.right-content {
    max-width: 28rem;
    margin: 0 auto;
    width: 100%;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.step-number.active {
    background-color: var(--primary-purple);
    color: var(--text-color, #fff);
}

.step-number.inactive {
    background-color: #e2e8f0;
    color: #64748b;
}

.step-label {
    font-size: 0.875rem;
}

.step-label.active {
    font-weight: 500;
    color: #334155;
}

.step-label.inactive {
    color: #64748b;
}

.step-line {
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
    margin: 0 1rem;
    margin-top: -20px;
}

.form-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem !important;
}

.form-section > p {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

.form-control-custom {
    height: 3rem;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

.form-control-custom:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px rgba(93, 61, 104, 0.2);
    outline: none;
}

.form-control-custom.is-invalid {
    border-color: #dc3545;
}

.form-control-custom.is-invalid:focus {
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.btn-primary-custom {
    background-color: var(--primary-purple) !important;
    border-color: var(--primary-purple) !important;
    height: 3rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color, #fff) !important;
    border-radius: 0.375rem;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary-custom:hover {
    background-color: var(--primary-purple-dark) !important;
    border-color: var(--primary-purple-dark) !important;
}

.btn-primary-custom:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed;
}

.btn-outline-custom {
    background: transparent;
    border: 1px solid #cbd5e1;
    height: 3rem;
    font-size: 1rem;
    color: #334155;
    border-radius: 0.375rem;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.btn-outline-custom:hover {
    background-color: #f8fafc;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.divider-text {
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.sign-in-link {
    text-align: center;
    margin-top: 1.5rem;
}

.sign-in-link a {
    background: none;
    border: none;
    color: #475569;
    font-size: 0.875rem;
    cursor: pointer;
}

.sign-in-link span {
    font-weight: 600;
    color: var(--primary-purple);
    text-decoration: underline;
}

.mexico-code-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.mexico-code-input {
    width: 3rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    border: 2px solid #cbd5e1;
    border-radius: 0.5rem;
    transition: border-color 0.2s;
}

.mexico-code-input:focus {
    border-color: var(--primary-purple);
    outline: none;
}

.mexico-code-input.is-invalid {
    border-color: #dc3545;
}

.mexico-resend-text {
    font-size: 0.875rem;
    color: #475569;
    margin-top: 1.5rem;
}

.resend-link {
    font-weight: 600;
    color: var(--primary-purple);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.resend-link:hover {
    text-decoration: underline;
}

.verify-email-text {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

.verify-email-text .email {
    font-weight: 500;
    color: #1e293b;
}

.hidden {
    display: none !important;
}

.info-box-light {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    margin-top: 1.5rem;
}

.info-box-light a {
    color: var(--primary-purple);
    font-weight: 500;
    text-decoration: none;
}

.info-box-light a:hover {
    text-decoration: underline;
}

.name-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Error message styles */
.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: none;
}

.error-message.show {
    display: block;
}

.error-message p {
    color: #dc2626;
    font-size: 0.875rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.field-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.field-error.show {
    display: block;
}

/* Success message styles */
.success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: none;
}

.success-message.show {
    display: block;
}

.success-message p {
    color: #16a34a;
    font-size: 0.875rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.already-claimed-container {
    text-align: center;
    padding: 1rem 0;
}

.already-claimed-icon {
    margin-bottom: 1.5rem;
}

.already-claimed-container h2 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.already-claimed-container p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.already-claimed-container .claimed-email {
    color: var(--background-color, #5D3D68);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background-color: #f8f4fa;
    border-radius: 0.375rem;
    display: inline-block;
}

.already-claimed-container .btn-primary-custom {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
}

.placement-welcome-body {
    min-height: 100vh;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
}

.welcome-header {
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.header-content {
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 2rem;
    width: auto;
}

.welcome-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.welcome-container {
    max-width: 42rem;
    width: 100%;
}

.welcome-card {
    background-color: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 2.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.welcome-icon-container {
    margin-bottom: 2rem;
    text-align: center;
}

.welcome-icon-bg {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: rgba(93, 61, 104, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.welcome-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary-purple);
}

.welcome-text-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.welcome-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.welcome-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
}

.welcome-divider {
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    gap: 1rem;
}

.info-icon-wrapper {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(93, 61, 104, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-purple);
}

.info-content {
    flex: 1;
}

.info-heading {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.info-description {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

.quick-info-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.quick-info-icon {
    width: 1rem;
    height: 1rem;
}

.cta-section {
    text-align: center;
}

.cta-text {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.begin-assessment-btn {
    background-color: var(--primary-purple);
    color: var(--text-color, #fff);
    padding: 0.875rem 3rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.begin-assessment-btn:hover {
    background-color: var(--primary-purple-dark);
}

.begin-assessment-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .welcome-card {
        padding: 1.5rem;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .quick-info-bar {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .info-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-content {
        text-align: center;
    }

    .begin-assessment-btn {
        width: 100%;
        padding: 1rem 2rem;
    }
}
