/* AB Detailing CTA Widget (Quick Request Form) Styles */

.abcta-section {
    padding: 100px 20px;
    background-color: #0f172a;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.abcta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 0% 100%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.abcta-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Grid Layout */
.abcta-grid {
    display: flex;
    align-items: center;
    gap: 60px;
}

.abcta-content {
    flex: 1.1;
}

.abcta-action {
    flex: 0.9;
    min-width: 0;
}

/* Badge */
.abcta-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Typography */
.abcta-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.abcta-desc {
    font-size: 17px;
    color: #cbd5e1;
    line-height: 1.8;
}

.abcta-desc p {
    margin-bottom: 20px;
}

/* Form Box */
.abcta-form-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.abcta-form-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: #ffffff;
    text-align: center;
}

/* Form Inputs */
.abcta-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.abcta-form[hidden],
.abcta-success[hidden],
.abcta-form-msg[hidden] {
    display: none !important;
}

.abcta-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.abcta-input-group label,
.abcta-input-group .abcta-label {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.abcta-input-group input[type="text"],
.abcta-input-group input[type="email"],
.abcta-input-group input[type="tel"],
.abcta-input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.abcta-input-group input::placeholder,
.abcta-input-group textarea::placeholder {
    color: #64748b;
}

.abcta-input-group input:focus,
.abcta-input-group textarea:focus {
    outline: none;
    border-color: #2563EB;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.abcta-input-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* File upload dropzone */
.abcta-input-group label.abcta-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px dashed rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    cursor: pointer;
    color: #cbd5e1;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 14px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.abcta-upload:hover,
.abcta-upload.is-drag,
.abcta-upload:focus-within {
    border-color: #2563EB;
    background: rgba(37, 99, 235, 0.08);
}

.abcta-upload-icon {
    color: #60a5fa;
}

.abcta-upload-text strong {
    color: #ffffff;
}

.abcta-upload-hint {
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

/* Visually hidden but focusable file input */
.abcta-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.abcta-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.abcta-file-list:empty {
    display: none;
}

.abcta-file-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 14px;
    color: #e2e8f0;
    margin: 0;
}

.abcta-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.abcta-file-size {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.abcta-file-remove {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 22px;
    line-height: 1;
    padding: 0 4px !important;
    cursor: pointer;
    box-shadow: none !important;
}

.abcta-file-remove:hover {
    color: #f87171 !important;
}

/* Honeypot - off-screen, not display:none (bots still see it) */
.abcta-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Error message */
.abcta-form-msg {
    padding: 12px 14px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    color: #fecaca;
    font-size: 14px;
    line-height: 1.5;
}

/* Button */
.abcta-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 30px;
    background-color: #2563EB;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
    cursor: pointer;
    margin-top: 10px;
}

.abcta-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
    background-color: #1D4ED8;
}

.abcta-submit-btn:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.abcta-submit-btn.is-loading .abcta-btn-icon {
    animation: abcta-pulse 1s ease-in-out infinite;
}

@keyframes abcta-pulse {
    0%, 100% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0.4; transform: translateX(4px); }
}

/* Success state */
.abcta-success {
    text-align: center;
    padding: 20px 0;
}

.abcta-success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.abcta-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
}

.abcta-success-msg {
    font-size: 16px;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .abcta-grid {
        flex-direction: column;
        gap: 50px;
    }

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

    .abcta-action {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .abcta-section {
        padding: 60px 15px;
    }
    .abcta-title {
        font-size: 32px;
    }
    .abcta-form-box {
        padding: 30px 20px;
    }
}
