* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    margin: 0;
}

.form-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 800px;
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: #123e5e; 
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

label span {
    color: #e74c3c; 
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
    background-color: #fafbfc;
    transition: 0.3s;
}

input:focus {
    outline: none;
    border-color: #00acc1;
}

input.error-border {
    border-color: #e74c3c;
    background-color: #fdf0ed;
}

input[readonly] {
    background-color: #f0f0f0;
    color: #777;
    cursor: not-allowed;
}

.input-with-prefix {
    display: flex;
    align-items: center;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background-color: #fafbfc;
}

.input-with-prefix .prefix {
    padding: 10px 15px;
    background-color: #f1f3f5;
    border-right: 1px solid #dcdcdc;
    color: #555;
    font-size: 0.9rem;
    border-radius: 6px 0 0 6px;
}

.input-with-prefix input {
    border: none;
    border-radius: 0 6px 6px 0;
    background-color: transparent;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background-color: #00acc1; 
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 172, 193, 0.4);
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0093a5;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

/* --- STEP 1 HERO / INTRO STYLES --- */
.step1-hero,
.step2-hero {
    background: linear-gradient(135deg, #f5fcfd 0%, #eef8fb 100%);
    border: 1px solid #d8f1f5;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 172, 193, 0.08);
}

.hero-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00acc1, #2bb7c9);
    box-shadow: 0 8px 18px rgba(0, 172, 193, 0.22);
    margin-bottom: 14px;
}

.hero-logo-image {
    width: 34px;
    height: 34px;
    display: block;
}

.step1-hero h1,
.step2-hero h1 {
    margin: 0 0 6px;
    color: #123e5e;
    font-size: 2rem;
    line-height: 1.2;
}

.step1-hero h3,
.step2-hero h3 {
    margin: 0 0 10px;
    color: #4a6f86;
    font-size: 1rem;
    font-weight: 600;
}

.hero-description {
    margin: 0 0 14px;
    color: #4f6472;
    line-height: 1.6;
    font-size: 0.95rem;
}

.info-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #ccecf1;
    border-left: 4px solid #00acc1;
    border-radius: 10px;
    padding: 12px 14px;
}

.alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00acc1;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.info-alert p {
    margin: 0;
    color: #355566;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- STEP 3 ERROR PAGE STYLES --- */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    padding: 10px 0;
    width: 100%;
}

.error-card {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f6fcfd 100%);
    border: 1px solid #dceef1;
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 14px 40px rgba(0, 172, 193, 0.12);
}

.error-gif {
    width: 92px;
    height: 92px;
    display: block;
    margin: 0 auto 16px;
    object-fit: contain;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #e8f8fb;
    color: #0e6f7a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.support-heading {
    color: #123e5e;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    margin: 0 0 10px;
}

.support-copy {
    color: #4f6472;
    line-height: 1.7;
    margin: 0 0 18px;
}

.support-details {
    background: #ffffff;
    border: 1px solid #dceef1;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.support-details p {
    margin: 6px 0;
    color: #355566;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-call,
.btn-secondary {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-call {
    background-color: #00acc1;
    color: white;
    box-shadow: 0 6px 16px rgba(0, 172, 193, 0.2);
}

.btn-secondary {
    background: #f7fbfc;
    color: #123e5e;
    border: 1px solid #cfe7ed;
}

.btn-call:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .form-wrapper {
        padding: 22px 16px;
    }

    .step1-hero,
    .step2-hero {
        padding: 18px;
    }

    .step1-hero h1,
    .step2-hero h1 {
        font-size: 1.45rem;
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .step1-hero,
    .step2-hero {
        padding: 16px;
    }

    .hero-description,
    .info-alert p,
    .support-copy {
        font-size: 0.9rem;
    }

    .error-page {
        min-height: auto;
        padding: 0;
    }

    .error-card {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .error-actions {
        flex-direction: column;
    }

    .btn-call {
        width: 100%;
        text-align: center;
    }
}

/* --- INTL-TEL-INPUT CUSTOM STYLING --- */
.iti {
    width: 100%;
    display: block;
}

.iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/18.2.1/img/flags.png");
}

@media (min-resolution: 2x) {
    .iti__flag {
        background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/18.2.1/img/flags@2x.png");
    }
}

.iti input {
    padding-left: 50px !important;
}