/* ========================================
   Aryan Cab Booking Form – acb-form.css
   v3.0 – Glassmorphism Design
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ── Wrapper ── */
.acb-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

/* ── Glass Card ── */
.acb-form {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(200, 220, 240, 0.70);
    border-radius: 18px;
    padding: 22px 24px 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ── Grid Rows (Full Width) ── */
.acb-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    box-sizing: border-box;
}

.acb-row-4 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    box-sizing: border-box;
}

.acb-row-3 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    box-sizing: border-box;
}

.acb-row-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 14px;
    align-items: center;
    box-sizing: border-box;
}

.acb-row-1 {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
    align-items: center;
    box-sizing: border-box;
}

.acb-wrapper--2col {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.acb-submit-row {
    margin-top: 8px;
    margin-bottom: 0;
}

/* ── Last Row: Margin reset ── */
.acb-row-last {
    margin-bottom: 0 !important;
}

/* ── Fields ── */
.acb-field {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Span classes */
.acb-field--span2 { grid-column: span 2; }
.acb-field--span3 { grid-column: span 3; }
.acb-field--span4 { grid-column: span 4; }
.acb-field--half  { flex: 1 1 calc(50% - 5px); }

/* ── Inputs & Selects — White Pill Style ── */
.acb-form input[type="text"],
.acb-form input[type="tel"],
.acb-form input[type="email"],
.acb-form input[type="date"] {
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    padding: 0 18px;
    border: 1.5px solid rgba(180, 205, 220, 0.60);
    border-radius: 50px;
    font-size: 13px;
    color: #111;
    background: rgba(255, 255, 255, 0.92);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.acb-form select {
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    padding: 0 38px 0 18px;
    border: 1.5px solid rgba(180, 205, 220, 0.60);
    border-radius: 50px;
    font-size: 13px;
    color: #111;
    background: rgba(255, 255, 255, 0.92);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23228B22' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* ── Placeholder → Black ── */
.acb-form input::placeholder {
    color: #1a1a1a;
    opacity: 1;
    font-size: 12.5px;
}

.acb-form select option[disabled] {
    color: #1a1a1a;
}

/* ── Focus ── */
.acb-form input[type="text"]:focus,
.acb-form input[type="tel"]:focus,
.acb-form input[type="email"]:focus,
.acb-form input[type="date"]:focus,
.acb-form select:focus {
    border-color: #2d8a4e;
    box-shadow: 0 0 0 3px rgba(45, 138, 78, 0.15), 0 2px 8px rgba(0,0,0,0.07);
    background: rgba(255,255,255,1);
}

/* Date picker icon */
.acb-form input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.7;
    cursor: pointer;
    filter: invert(35%) sepia(80%) saturate(400%) hue-rotate(100deg);
}

/* ── Submit Button — Solid Dark Green ── */
.acb-submit-btn {
    width: 100%;
    height: 50px;
    padding: 0 30px;
    background: #277a43;
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background 0.22s, transform 0.18s, box-shadow 0.22s;
    box-shadow: 0 4px 18px rgba(39, 122, 67, 0.45);
    font-family: inherit;
}

.acb-submit-btn:hover {
    background: #1e6635;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(39, 122, 67, 0.55);
}

.acb-submit-btn:active {
    background: #175229;
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(39, 122, 67, 0.40);
}

.acb-submit-btn:disabled {
    opacity: 0.70;
    cursor: not-allowed;
    transform: none;
}

.acb-btn-icon {
    font-size: 15px;
    opacity: 0.9;
}

/* ── Messages ── */
.acb-message {
    margin-top: 12px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 500;
    text-align: center;
}

.acb-success {
    background: rgba(232, 253, 240, 0.95);
    color: #1a6b3a;
    border: 1px solid #9de8b8;
}

.acb-error {
    background: rgba(255, 240, 240, 0.95);
    color: #c0392b;
    border: 1px solid #f5c0bb;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .acb-row-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .acb-row-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .acb-field--span2,
    .acb-field--span3,
    .acb-field--span4 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .acb-wrapper {
        padding: 4px 2px !important;
    }
    .acb-form {
        padding: 10px 8px 8px !important;
        border-radius: 12px !important;
    }
    .acb-row {
        gap: 6px !important;
        margin-bottom: 6px !important;
    }
    .acb-row-4,
    .acb-row-3,
    .acb-row-2,
    .acb-row-last {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 6px !important;
    }
    .acb-field {
        width: 100% !important;
        min-width: 0 !important;
    }
    .acb-field--span2,
    .acb-field--span3,
    .acb-field--span4 {
        grid-column: span 2 !important;
    }
    .acb-form input[type="text"],
    .acb-form input[type="tel"],
    .acb-form input[type="email"],
    .acb-form input[type="date"],
    .acb-form select {
        height: 38px !important;
        padding: 0 10px !important;
        font-size: 11.5px !important;
        border-radius: 20px !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
    }
    .acb-form select {
        padding-right: 22px !important;
        background-position: right 8px center !important;
        background-size: 9px 5px !important;
    }
    .acb-form input::placeholder {
        font-size: 11px !important;
    }
    .acb-submit-btn {
        font-size: 11px !important;
        letter-spacing: 0.5px !important;
        height: 38px !important;
        padding: 0 8px !important;
        border-radius: 20px !important;
        gap: 5px !important;
        white-space: nowrap !important;
    }
    .acb-btn-icon {
        font-size: 11px !important;
    }
    .acb-message {
        border-radius: 10px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 380px) {
    .acb-form {
        padding: 8px 6px 6px;
    }
    .acb-row-4,
    .acb-row-3,
    .acb-row-2,
    .acb-row-last {
        gap: 5px;
        margin-bottom: 5px;
    }
    .acb-form input[type="text"],
    .acb-form input[type="tel"],
    .acb-form input[type="email"],
    .acb-form input[type="date"],
    .acb-form select {
        height: 36px;
        padding: 0 8px;
        font-size: 10.5px;
    }
    .acb-form select {
        padding-right: 18px;
        background-position: right 6px center;
    }
    .acb-form input::placeholder {
        font-size: 10px;
    }
    .acb-submit-btn {
        height: 36px;
        font-size: 10px;
        letter-spacing: 0.2px;
        padding: 0 6px;
    }
}

/* ========================================
   Clean Card Layout (Matching Reference Image)
   Used for [aryan_cab_booking_2col] / [aryan_cab_booking_page]
======================================== */
.acb-card-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

.acb-card-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 26px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.acb-card-header {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
    text-align: center;
}

.acb-card-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}

.acb-card-row {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
}

.acb-card-row--textarea {
    align-items: flex-start;
}

.acb-card-row--textarea .acb-card-label {
    padding-top: 10px;
}

.acb-card-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.acb-card-req {
    color: #ef4444;
    font-weight: 700;
    margin-left: 2px;
}

.acb-card-input-box {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.acb-card-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #6b7280;
}

.acb-card-icon svg {
    width: 17px;
    height: 17px;
    stroke: #6b7280;
    fill: none;
}

.acb-card-row--textarea .acb-card-icon {
    top: 14px;
    transform: none;
}

.acb-card-form input[type="text"],
.acb-card-form input[type="tel"],
.acb-card-form input[type="email"],
.acb-card-form input[type="date"],
.acb-card-form select,
.acb-card-form textarea {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0 14px 0 42px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13.5px;
    color: #111827;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.acb-card-form textarea {
    height: 72px;
    padding: 10px 14px 10px 42px;
    resize: vertical;
}

.acb-card-form input::placeholder,
.acb-card-form textarea::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

.acb-card-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.acb-card-form input:focus,
.acb-card-form select:focus,
.acb-card-form textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.acb-card-submit-row {
    margin-top: 18px;
    margin-bottom: 0;
}

.acb-card-submit-btn {
    width: 100%;
    height: 48px;
    background: #f5b300;
    color: #000000;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 3px 10px rgba(245, 179, 0, 0.35);
    font-family: inherit;
}

.acb-card-submit-btn:hover {
    background: #e0a200;
    box-shadow: 0 5px 16px rgba(245, 179, 0, 0.45);
    transform: translateY(-1px);
}

.acb-card-submit-btn:active {
    transform: translateY(0);
}

.acb-card-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 640px) {
    .acb-card-form {
        padding: 18px 16px;
    }
    .acb-card-row {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-bottom: 12px;
    }
    .acb-card-row--textarea .acb-card-label {
        padding-top: 0;
    }
    .acb-card-submit-btn {
        height: 46px;
        font-size: 14px;
    }
}

/* ============================================================
   Captcha & Anti-Spam Styling (Compact & Inline with Submit Button)
   ============================================================ */
.acb-btn-captcha-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

.acb-btn-captcha-wrap .acb-captcha-wrap {
    flex: 0 0 auto !important;
}

.acb-btn-captcha-wrap .acb-submit-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 140px !important;
    height: 46px !important;
    padding: 0 20px !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

/* Compact Captcha Pill Box */
.acb-captcha-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: #ffffff !important;
    border: 1.5px solid rgba(180, 205, 220, 0.85) !important;
    border-radius: 50px !important;
    padding: 0 6px 0 10px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    box-sizing: border-box !important;
    height: 46px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.acb-captcha-badge {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    white-space: nowrap !important;
    user-select: none !important;
}

.acb-c-q {
    letter-spacing: 0.5px;
}

.acb-captcha-input {
    width: 38px !important;
    height: 30px !important;
    padding: 0 !important;
    border: 1.5px solid #94a3b8 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}

.acb-captcha-input::-webkit-outer-spin-button,
.acb-captcha-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.acb-captcha-input:focus {
    border-color: #277a43 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(39, 122, 67, 0.2) !important;
}

.acb-captcha-reload {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s, transform 0.25s ease !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.acb-captcha-reload:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Card Form Specific Adjustments */
.acb-card-form .acb-card-submit-row.acb-btn-captcha-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    margin-top: 16px !important;
    width: 100% !important;
}

.acb-card-form .acb-card-submit-row .acb-captcha-wrap {
    border-radius: 6px !important;
    border: 1.5px solid #e5e7eb !important;
    background: #f9fafb !important;
    height: 48px !important;
    flex-shrink: 0 !important;
}

.acb-card-form .acb-card-submit-btn {
    flex: 1 1 auto !important;
    height: 48px !important;
    padding: 0 16px !important;
    font-size: 13.5px !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
}

/* ── Captcha Pill & Submit Button in 4-column Grid ── */
.acb-row-4 .acb-captcha-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1.5px solid rgba(180, 205, 220, 0.60) !important;
    border-radius: 50px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07) !important;
    box-sizing: border-box !important;
    padding: 0 8px !important;
    margin: 0 !important;
}

.acb-row-4 .acb-submit-btn {
    width: 100% !important;
    height: 46px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    letter-spacing: 0.8px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    border-radius: 50px !important;
}



