/* DEFAULT FORM (vertical) */
.caf-form {
    max-width: 100%;
    background: #ffffff;
    color: #000000;
    padding: 20px;
    border: 1px solid #ddd;
    font-family: Arial, sans-serif;
}

/* Inputs */
.caf-form input,
.caf-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    background: #ffffff;
    color: #000000;
    font-size: 14px;
}

.caf-form textarea {
    min-height: 100px;
}

/* Checkbox */
.caf-form label {
    font-size: 13px;
    display: block;
    margin-bottom: 15px;
}

/* Button */
.caf-form button {
    background: #000000;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    width: 100% !important;
}

.caf-form button:hover {
    background: #F05427 !important;
}

/* Response */
.caf-response {
    margin-top: 10px;
}

.success { color: green; }
.error { color: red; }

/* ===============================
   INLINE SUBSCRIBE FORM (ONLY 3 FIELDS)
   =============================== */

.caf-inline-form {
    display: flex;
  	flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    padding: 0px;
}

.caf-inline-form input {
    flex: 1;
    height: 44px;
    margin-bottom: 0;
    border: none;
    width: 0px !important;
  background: #fff !important;
}

.caf-inline-form button {
    height: 44px;
    background: #f5a623;
    font-weight: bold;
    white-space: nowrap;
      overflow: inherit !important;
  width: 170px !important;
}
.caf-inline-form button:hover {
    background: #F05427 !important;
}

/* Hide consent text only for inline form */
.caf-inline-form label {
    display: none;
}

/* Response under inline row */
.caf-inline-form .caf-response {
    flex-basis: 100%;
    color: #ffffff;
}

/* Mobile fallback */
@media (max-width: 768px) {
    .caf-inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .caf-inline-form input {
        width: 100% !important;
        flex: unset;
    }

    .caf-inline-form button {
        width: 100% !important;
    }
}

.caf-inline-form label {
    display: none;
}


.consent-wrapper {
  text-align: left !important;
}

.consent-label {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  max-width: 100%;
  color: #000 !important
}

.consent-label input[type="checkbox"] {
  margin: 3px 0 0 0;
  position: relative;
}

.consent-text {
  line-height: 1.5;
}


.consent-text {
  line-height: 1.5;
}


/* ===============================
   POPUP / TOAST (TOP RIGHT)
   =============================== */

.caf-popup-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: transparent;      /* no dark overlay */
    z-index: 999999;
    pointer-events: none;         /* click-through except popup */
}

.caf-popup {
    position: absolute;
    top: 40px;                    /* MORE SPACE FROM TOP */
    right: 40px;                  /* RIGHT SIDE */
    background: #ffffff;
    padding: 18px 22px;
    max-width: 360px;
    width: auto;
    border-radius: 6px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: cafSlideIn 0.35s ease;
    pointer-events: auto;
}

.caf-popup-message {
    font-size: 14px;
    line-height: 1.4;
}

.caf-popup.success {
    border-left: 4px solid #2e7d32;
}

.caf-popup.error {
    border-left: 4px solid #c62828;
}

.caf-popup-close {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 18px;
    cursor: pointer;
}

/* Animation */
@keyframes cafSlideIn {
    from {
        transform: translateX(40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}



.caf-test-drive-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caf-test-drive-popup {
    background: #fff;
    padding: 25px;
    max-width: 520px;
    width: 100%;
    border-radius: 6px;
    position: relative;
}

.caf-test-drive-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}
