/* DR. PANTURU - CONTACT FORM 7 LUXURY (v1.16.3)
 * Compact contact form styling, migrated from WordPress Additional CSS.
 * Applies only inside .drp-form-panel and .drp-cf7-compact.
 */

.drp-form-panel {
    padding: 30px !important;
}

.drp-form-panel__lead {
    margin-bottom: 20px !important;
}

.drp-form-panel .wpcf7 form {
    display: block !important;
    margin: 0;
}

.drp-form-panel .drp-cf7-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
}

/* Remove the paragraphs' default margins inserted by CF7. */
.drp-form-panel .drp-cf7-compact p {
    margin: 0 !important;
    padding: 0 !important;
}

.drp-form-panel .drp-cf7-compact__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

/* Form fields. */
.drp-form-panel .drp-cf7-compact__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    width: 100%;
}

.drp-form-panel .drp-cf7-compact__field label {
    display: block;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #29241f;
}

.drp-form-panel .drp-cf7-compact .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.drp-form-panel .drp-cf7-compact__field
:is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    height: 46px;
    min-height: 46px;
    padding: 11px 14px;
    margin: 0 !important;

    background: #fffefa;
    border: 1px solid #d8cdbf;
    border-radius: 0;
    color: #201b16;

    font-size: 14px;
    line-height: 1.45;
    box-shadow: none;
    appearance: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.drp-form-panel .drp-cf7-compact__field textarea {
    height: 88px !important;
    min-height: 88px !important;
    resize: vertical;
}

.drp-form-panel .drp-cf7-compact__field
:is(input, textarea):focus {
    outline: none;
    border-color: #a77b3d;
    box-shadow: 0 0 0 3px rgba(167,123,61,.10);
}

/* Consent checkbox and GDPR text. */
.drp-form-panel .drp-cf7-compact__consent {
    margin-top: 3px;
}

.drp-form-panel .drp-cf7-compact__consent
.wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    color: #62594f;
}

.drp-form-panel .drp-cf7-compact__consent
input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #a77b3d;
}

.drp-form-panel .drp-cf7-compact__consent a {
    color: #89612e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Premium submit button. */
.drp-form-panel .drp-cf7-compact__actions {
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.drp-form-panel .drp-cf7-compact__submit {
    width: auto !important;
    min-height: 46px;
    padding: 12px 48px 12px 22px;
    margin: 0 !important;

    background-color: #201b16;
    border: 1px solid #201b16;
    border-radius: 0;
    color: #f4eee5;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d9b782' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-7-7 7 7-7 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;

    cursor: pointer;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.drp-form-panel .drp-cf7-compact__submit:hover {
    background-color: #403126;
    transform: translateY(-2px);
}

/* Tablet and phone. */
@media (max-width: 767px) {

    .drp-form-panel {
        padding: 24px 20px !important;
    }

    .drp-form-panel .drp-cf7-compact__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .drp-form-panel .drp-cf7-compact {
        gap: 13px;
    }

    .drp-form-panel .drp-cf7-compact__submit {
        width: 100% !important;
        text-align: left;
    }

}

/* Respect accessibility preferences. */
@media (prefers-reduced-motion: reduce) {
    .drp-form-panel .drp-cf7-compact__submit,
    .drp-form-panel .drp-cf7-compact__field input,
    .drp-form-panel .drp-cf7-compact__field textarea {
        transition: none;
    }
}

/* Preserve the requested styles against more-specific legacy CF7 rules.
   The original form stylesheet is enqueued before this file. */
.drp-form-panel .wpcf7 .drp-cf7-compact__submit {
    padding: 12px 48px 12px 22px;
    color: #f4eee5;
    font-size: 11px;
    font-weight: 700;
}
.drp-form-panel .wpcf7 input[type="submit"].drp-cf7-compact__submit:hover {
    background-color: #403126;
    border-color: #403126;
    transform: translateY(-2px);
}
.drp-form-panel .wpcf7 .drp-cf7-compact__field :is(input, textarea):focus {
    border-color: #a77b3d;
    box-shadow: 0 0 0 3px rgba(167,123,61,.10);
}
