/* Package Contact Form — based on form-travel.html */

.contact-form-2 .form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 18px;
}

.contact-form-2 .input,
.contact-form-2 .textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    outline: none;
    color: #333;
    font-family: var(--wp--preset--font-family--satoshi);
    box-sizing: border-box;
}

.contact-form-2 .input::placeholder,
.contact-form-2 .textarea::placeholder {
    color: #8D8C8C;
}

.contact-form-2 .textarea {
    min-height: 80px;
    resize: none;
}

.contact-form-2 .select-container {
    position: relative;
}

.contact-form-2 .select-container select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    cursor: pointer;
}

.contact-form-2 .select-container::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

.contact-form-2 .privacy {
    font-size: 14px;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 2px 8px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 32px;
}

.contact-form-2 .btn-submit {
    display: block;
    margin: 0 auto;
    padding: 9px 40px 11px 40px;
    background: rgba(198, 110, 101, 1);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.contact-form-2 .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Privacy checkbox label */
.contact-form-2 .privacy-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 32px;
}

.contact-form-2 .privacy-label a {
    color: #fff;
    text-decoration: underline;
}

.contact-form-2 .privacy-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Validation error border */
.contact-form-2 .input.tfb-error,
.contact-form-2 .textarea.tfb-error,
.contact-form-2 .select-container select.tfb-error {
    border: 2px solid #e74c3c;
}

.contact-form-2 .privacy-label.tfb-error {
    color: #e74c3c;
}

/* Success / error messages */
.tfb-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

.tfb-message--success {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.tfb-message--error {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Responsive */
@media (max-width: 767px) {
    .contact-form-2 .form-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }

    .contact-form-2 .input,
    .contact-form-2 .textarea {
        padding: 11px 16px;
    }

    .contact-form-2 .form-wrapper-bottom {
        display: flex;
        flex-direction: column;
    }

    .contact-form-2 .form-wrapper-bottom .btn-submit {
        order: -1;
        margin-top: 16px;
    }

    .contact-form-2 .privacy-label {
        font-size: 14px;
        color: #212529;
        margin-bottom: 0;
    }

    .contact-form-2 .privacy-label a {
        color: #212529;
    }
}
