/* ===========================
   CF7 Presto – Global Styles
   =========================== */

/* Container */
.cf7-presto {
    margin: 0 0;
}

.cf7-presto__card,
.cf7_presto__card_footer {
    border: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.cf7-presto__card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
}

.cf7-presto__card_footer {
    background: #000;
    border-radius: 0 0 12px 12px;
    padding: 0px 20px;
}


/* Title */
.cf7-presto__title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #222;
    text-align: center;
}

.cf7-presto__card_footer .cf7-presto__title {
    color: #fff;
}

/* Form grid */
.cf7-presto .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.cf7-presto .cf7-presto__card_footer .row {
    margin-bottom: 0;
}

.cf7-presto .cf7-presto__card_footer p {
    padding-bottom: 0 !important;
}

.cf7-presto .col {
    min-width: 0;
}

@media (max-width: 780px) {
    .cf7-presto .row {
        grid-template-columns: 1fr;
    }
}

/* Labels */
.cf7-presto label {
    display: block;
    margin: 0 0 10px;
    font-weight: 600;
    color: #222;
}

.cf7-presto__card_footer label {
    color: #888;
    margin: unset;
    font-weight: 550;
}

/* Inputs, selects, textareas */
.cf7-presto input[type="text"],
.cf7-presto input[type="email"],
.cf7-presto input[type="tel"],
.cf7-presto input[type="number"],
.cf7-presto input[type="url"],
.cf7-presto input[type="date"],
.cf7-presto select,
.cf7-presto textarea {
    width: 100%;
    height: 48px;
    padding: 12px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    background: #fff;
    color: #222;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
    transition: box-shadow .15s ease, border-color .15s ease;
}

.cf7-presto .cf7-presto__card_footer input[type="text"],
.cf7-presto .cf7-presto__card_footer input[type="email"],
.cf7-presto .cf7-presto__card_footer input[type="tel"],
.cf7-presto .cf7-presto__card_footer input[type="number"],
.cf7-presto .cf7-presto__card_footer input[type="url"],
.cf7-presto .cf7-presto__card_footer input[type="date"],
.cf7-presto .cf7-presto__card_footer select,
.cf7-presto .cf7-presto__card_footer textarea {
    height: 28px;
    padding: 0 14px;
    background: #222;
    color: #fff;
    border: unset;
}

.cf7-presto textarea {
    height: 120px;
    resize: vertical;
}

.cf7-presto ::placeholder {
    color: #9a9a9a;
}

/* Select arrow */
.cf7-presto select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #777 50%),
        linear-gradient(135deg, #777 50%, transparent 50%),
        linear-gradient(to right, transparent, transparent);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, 100% 0;
    background-size: 6px 6px, 6px 6px, 2.5em 100%;
    background-repeat: no-repeat;
}

/* Focus state */
.cf7-presto input:focus,
.cf7-presto select:focus,
.cf7-presto textarea:focus {
    outline: none;
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

/* Checkboxes and radios */
.cf7-presto .wpcf7-list-item {
    margin: 0 20px 10px 0;
}

.cf7-presto input[type="checkbox"],
.cf7-presto input[type="radio"] {
    width: auto;
    height: auto;
    margin-right: 8px;
}

/* CF7 messages */
.cf7-presto .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 12px;
    color: #c62828;
}

.cf7-presto .wpcf7-response-output {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 6px;
    border-width: 1px;
}

.cf7-presto .wpcf7 form.invalid .wpcf7-response-output {
    background: #fff5f5;
    border-color: #e66;
    color: #a33;
}

.cf7-presto .wpcf7 form.sent .wpcf7-response-output {
    background: #f4fbf6;
    border-color: #a4d4a4;
    color: #276738;
}

/* Submit row spacing */
.cf7-presto .wpcf7-form p {
    margin: 0 0 12px;
}

.cf7-presto__card_footer .wpcf7-form p {
    margin: 0;
}

/* Submit button */
.cf7-presto input.wpcf7-submit,
.cf7-presto .et_pb_button {
    display: inline-block;
    padding: 12px 26px !important;
    border-radius: 6px;
    background: #e02b20 !important;
    color: #fff !important;
    border: none;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    transition: filter .15s ease, transform .02s ease-in;
}

.cf7-presto .cf7-presto__card_footer input.wpcf7-submit,
.cf7-presto .cf7-presto__card_footer .et_pb_button {
    padding: 2px 18px !important;
    line-height: 1;
    background: #6b1410 !important;
}



.cf7-presto input.wpcf7-submit:hover,
.cf7-presto .et_pb_button:hover {
    filter: brightness(0.95);
}

.cf7-presto .cf7-presto__card_footer input.wpcf7-submit:hover,
.cf7-presto .cf7-presto__card_footer .et_pb_button:hover {
    filter: brightness(0.95);
    background: #e02b20 !important;
}

.cf7-presto input.wpcf7-submit:active,
.cf7-presto .et_pb_button:active {
    transform: translateY(1px);
}

.cf7-presto input.wpcf7-submit:focus,
.cf7-presto .et_pb_button:focus {
    outline: 2px solid rgba(224, 43, 32, .35);
    outline-offset: 2px;
}

@media (max-width: 480px) {

    .cf7-presto input.wpcf7-submit,
    .cf7-presto .et_pb_button {
        width: 100%;
        text-align: center;
    }
}

/* Note, hint, and error helpers */
.cf7-presto .form-note {
    font-size: 12px;
    color: #555;
    margin-top: 10px;
}

.cf7-presto .form-error {
    padding: 12px;
    border: 1px solid #e66;
    background: #fff5f5;
    color: #a33;
    border-radius: 8px;
}

/* CF7 spinner alignment and subtle sizing */
.cf7-presto .wpcf7-spinner {
    margin-left: 10px;
    transform: translateY(2px);
}

/* Divi overrides to keep things tidy inside columns */
.et_pb_column .cf7-presto .wpcf7-form p {
    margin-bottom: 12px;
}

.et_pb_column .cf7-presto .cf7-presto__card_footer .wpcf7-form p {
    margin-bottom: 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .cf7-presto *,
    .cf7-presto *::before,
    .cf7-presto *::after {
        animation: none !important;
        transition: none !important;
    }
}