/* ===================================================
   TATA AGRICO - UNNATI SCHEME
   Brand Colors:
   - Tata Blue:  #1B68B3
   - Agrico Green: #2EA84F
   - Dark text: #1a2332
   =================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1B68B3;
    --primary-blue-dark: #155490;
    --primary-blue-light: #E8F1FA;
    --primary-green: #2EA84F;
    --primary-green-dark: #228A3F;
    --primary-green-light: #E8F7EC;
    --text-dark: #1a2332;
    --text-body: #475569;
    --text-light: #64748b;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --success: #16a34a;
    --success-bg: #f0fdf4;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(27, 104, 179, 0.08);
    --shadow-lg: 0 10px 25px rgba(27, 104, 179, 0.12);
    --radius: 10px;
    --radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--primary-green);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    height: 60px;
    width: auto;
    display: block;
}

.unnati-logo {
    height: 50px;
    width: auto;
    display: block;
}

.badge-unnati {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* ===== MOBILE INPUT WITH +91 PREFIX ===== */
.mobile-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: all 0.2s ease;
    overflow: hidden;
}

.mobile-input-wrap:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(27, 104, 179, 0.12);
}

.mobile-input-wrap.error {
    border-color: var(--error);
    background: var(--error-bg);
}

.country-prefix {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    padding: 13px 14px;
    font-weight: 700;
    font-size: 1rem;
    border-right: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    user-select: none;
    flex-shrink: 0;
}

.mobile-input-wrap input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
    padding: 13px 16px !important;
    font-size: 1rem;
    font-family: inherit;
    background: transparent !important;
    box-shadow: none !important;
    width: 100%;
    min-width: 0;
}

.mobile-input-wrap input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.mobile-input-wrap input.error {
    background: transparent !important;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2178c8 100%);
    color: white;
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary-green);
    opacity: 0.15;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: white;
    opacity: 0.05;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.text-green {
    color: #7DDC9A;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

.hero-subtitle strong {
    color: #FFD700;
    font-weight: 700;
}

.hero-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.step-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text {
    font-size: 14px;
    font-weight: 600;
}

.step-arrow {
    color: rgba(255,255,255,0.6);
    font-size: 20px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .hero-steps {
        flex-direction: column;
    }
    .step-arrow {
        transform: rotate(90deg);
    }
    .step-item {
        width: 100%;
        max-width: 280px;
    }
}

/* ===== FORM SECTION ===== */
.form-section {
    padding: 50px 0 40px;
    margin-top: -40px;
    position: relative;
    z-index: 5;
}

.form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 820px;
    margin: 0 auto;
    border-top: 4px solid var(--primary-green);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--border);
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.form-header p {
    color: var(--text-body);
    font-size: 1rem;
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error);
    border-color: var(--error);
}

/* ===== FORM FIELDS ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.req {
    color: var(--error);
    font-weight: 700;
}

.optional {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.85rem;
}

.form-group input,
.form-group select {
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: white;
    transition: all 0.2s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(27, 104, 179, 0.12);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--error);
    background: var(--error-bg);
}

.error-msg {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 18px;
    font-weight: 500;
}

.help-text {
    color: var(--text-light);
    font-size: 0.82rem;
    margin-top: 6px;
}

/* ===== CONSENT ===== */
.form-consent {
    margin: 24px 0;
    padding: 14px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.5;
}

.checkbox-wrap input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-wrap a {
    color: var(--primary-blue);
    text-decoration: underline;
    font-weight: 600;
}

/* ===== SUBMIT BUTTON ===== */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(46, 168, 79, 0.3);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(46, 168, 79, 0.4);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

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

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== INFO STRIP ===== */
.info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 820px;
    margin: 30px auto 0;
}

.info-item {
    background: white;
    padding: 18px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary-blue);
}

.info-item:nth-child(2) {
    border-left-color: var(--primary-green);
}

.info-item:nth-child(3) {
    border-left-color: #f59e0b;
}

.info-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.info-item div:last-child {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.info-item span {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* ===== THANK YOU PAGE ===== */
.thankyou-section {
    padding: 60px 0;
    min-height: 60vh;
}

.thankyou-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    border-top: 5px solid var(--primary-green);
}

.success-icon {
    margin: 0 auto 24px;
    animation: scale-in 0.5s ease;
}

@keyframes scale-in {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.thankyou-card h1 {
    font-size: 1.9rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.thankyou-card .lead {
    color: var(--text-body);
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.confirmation-box {
    background: var(--primary-blue-light);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 28px;
    text-align: left;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(27, 104, 179, 0.2);
    font-size: 0.95rem;
}

.confirm-row:last-child {
    border-bottom: none;
}

.confirm-row .lbl {
    color: var(--text-body);
    font-weight: 500;
}

.confirm-row .val {
    color: var(--text-dark);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.next-steps {
    text-align: left;
    background: var(--primary-green-light);
    padding: 22px;
    border-radius: var(--radius);
    margin-bottom: 28px;
}

.next-steps h3 {
    color: var(--primary-green-dark);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 6px 0 6px 26px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-body);
}

.next-steps li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-back {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-back:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.85);
    padding: 24px 0;
    text-align: center;
    margin-top: 40px;
}

.site-footer p {
    font-size: 0.9rem;
}

.site-footer .small {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .form-card {
        padding: 24px 20px;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .info-strip {
        grid-template-columns: 1fr;
    }
    .site-logo {
        height: 48px;
    }
    .unnati-logo {
        height: 38px;
    }
    .badge-unnati {
        font-size: 11px;
        padding: 6px 14px;
    }
    .hero {
        padding: 40px 0 50px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .form-header h2 {
        font-size: 1.5rem;
    }
    .thankyou-card {
        padding: 32px 22px;
    }
    .thankyou-card h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .site-header .container {
        flex-direction: column;
        gap: 10px;
    }
    .form-card {
        border-radius: var(--radius);
    }
}
