body { font-family: Arial; background:#0f172a; color:#fff; }

:root {
    --primary: #e11d2e;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #ffffff;
    --card-dark: rgba(255,255,255,0.05);
    --card-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    height: 55px;
}

/* HERO */
.hero {
    text-align: center;
    padding: 20px 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
}

.hero span {
    color: var(--primary);
}

.hero p {
    margin-top: 10px;
    opacity: 0.8;
}

/* BADGE */
.badge {
    margin-top: 20px;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(225,29,46,0.1);
    color: var(--primary);
    font-weight: 500;
}

/* GRID */
.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    margin-top: 40px;
}

.card {
    padding: 20px;
    border-radius: 4px;
    transition: 0.3s;
    backdrop-filter: blur(12px);
	background: var(--card-dark);
}

/* .card:hover {
    transform: translateY(-6px);
} */

/* FORM */
.form-box {
    margin-top: 20px;
    padding: 30px;
    border-radius: 4px;
}

input, select, textarea {
	 width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-transform: uppercase; /* 🔥 point 10 */
}

button {
    margin-top: 15px;
    padding: 12px;
    width: 100%;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

.submit-group {
    display: flex;
    justify-content: flex-end;   /* 👉 push to right */
    align-items: center;        /* 👉 match height */
}

.submit-group button {
    width: fit-content;
    min-width: 120px;            /* prevents too small on mobile */
    height: 100%;
}

/* PARTICLE CANVAS */
#particles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}

/* FOOTER */
.footer {
    margin-top: 80px;
    padding: 50px 20px 20px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 30px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 10px;
}

.footer-col h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-col p {
    font-size: 14px;
    opacity: 0.8;
    margin: 6px 0;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: #94a3b8;
    text-decoration: none;
    margin: 6px 0;
    transition: 0.3s;
}

.footer-col a:hover {
    color: #e11d2e;
}

/* SOCIAL ICONS */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 18px;
}

.social-icons a:hover {
    background: rgba(225,29,46,0.15);
    color: #e11d2e;
    transform: translateY(-3px);
}

/* FOOTER BOTTOM */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    opacity: 0.6;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap; /* prevents breaking */
}

.contact-item a {
    white-space: nowrap; /* 🔥 key fix */
}

.row { display:flex; gap:10px; }
.row > div { flex:1; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: span 2;
}

.mobile-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mobile-wrap input {
    height: 42px; /* match all inputs */
}

/* +91 box */
.cc-display {
    width: 60px;
    min-width: 60px;
    text-align: center;
    background: rgba(255,255,255,0.08);
    color: #fff;
    pointer-events: none;
}

/* 🔥 MOBILE FIX */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr; /* stack everything */
    }

    .form-group.full {
        grid-column: span 1;
    }
	
	.submit-group button {
        width: fit-content;
    }
	
	.mobile-wrap {
        flex-direction: row;
    }
}

.cc-display {
    width: 60px;
    text-align: center;
    background: rgba(255,255,255,0.08);
    color: #fff;
}

label {
    font-size: 13px;
    margin-bottom: 6px;
    opacity: 0.8;
}

.form-group label {
    margin-bottom: 6px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: rgba(255, 255, 255, 0.08);
    color: #fff;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23e11d2e' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 5 5-5z'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;

    padding-right: 35px;
}

select option {
    background: #0f172a;  /* dark background */
    color: #ffffff;
}

textarea {
    min-height: 80px;
	resize:none;
}

.form-group input,
.form-group textarea,
.form-group select {
    /* width: 100%; */
    font-size: 13px; /* prevents zoom on iOS */
}

.cc {
    width: 80px; /* 🔥 point 2 */
}

.submit-group {
    display: flex;
    align-items: stretch; /* 🔥 key fix */
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

/* HEADER FIX */
.license-header {
    display: flex;
    align-items: center;
    gap: 8px;              /* small gap between label & checkbox */
    margin-bottom: 5px;
}

/* REMOVE RIGHT ALIGNMENT */
.license-header {
    justify-content: flex-start;   /* 🔥 important */
	height: 20px;
}

/* SMALL CHECKBOX */
#toggleLicense {
    width: 12px;
    height: 12px;
    accent-color: #e11d2e;
    cursor: pointer;
	margin: inherit;
}

/* MATCH LABEL HEIGHT */
.license-label {
    font-size: 13px;
    opacity: 0.8;
}

/* ENSURE TEXTAREAS ALIGN */
textarea {
    margin-top: 0;   /* 🔥 removes extra spacing mismatch */
}

#license_address:disabled {
    opacity: 0.5;
}

#license_address {
    transition: all 0.2s ease;
}

.form-message {
    margin-top: 10px;
    font-size: 14px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}

.form-message.error {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}