/*
Theme Name: 9stay
Theme URI: https://9stay.com
Author: 9stay
Author URI: https://9stay.com
Description: 9stayのカスタムテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 9stay
*/

/* Contact Form 7 Styling - Optimized for Actual HTML Output */
.c-form {
    max-width: 900px;
    margin: 0 auto;
}

.c-form br {
    display: none;
}

/* Form Item Container */
.c-form__item {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid #edf2f7;
}

.c-form__item:first-child {
    padding-top: 0;
}

.c-form__item>p {
    margin: 0;
    width: 100%;
}

.c-form__item p {
    display: contents;
}

@media (min-width: 768px) {
    .c-form__item {
        /* flex-direction: row; */
        align-items: flex-start;
        gap: 1.1rem;
    }

    .c-form__item>p:first-child {
        width: 300px;
        flex-shrink: 0;
    }

    .c-form__item>p:last-child {
        flex-grow: 1;
    }
}

/* Label Styling */
.c-form__label {
    font-weight: 700;
    font-size: 1rem;
    color: #1a202c;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .c-form__label {
        margin-bottom: 0;
    }
}

/* Badge Styling */
.c-form__required {
    background-color: #C8A96A;
    color: #fff;
    font-size: 16px;
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-right: 0.5rem;
}

.c-form__optional {
    background-color: #e2e8f0;
    color: #4a5568;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Input/Textarea Styling */
.c-form__input,
.c-form__textarea,
.c-form input[type="text"],
.c-form input[type="email"],
.c-form input[type="tel"],
.c-form textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #2d3748;
    appearance: none;
    -webkit-appearance: none;
}

.c-form__input:focus,
.c-form__textarea:focus,
.c-form input:focus,
.c-form textarea:focus {
    outline: none;
    border-color: #C8A96A;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(200, 169, 106, 0.1);
}

.c-form__textarea,
.c-form textarea {
    min-height: 180px;
    resize: vertical;
}

/* Radio Buttons - Horizontal Layout */
.c-form__radio,
.c-form .wpcf7-form-control.wpcf7-radio {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    border: none !important;
    background: transparent !important;
    padding: 0.5rem 0 !important;
    margin: 0;
}

.c-form .wpcf7-list-item {
    margin: 0;
    display: inline-block;
}

.c-form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 500;
}

.c-form .wpcf7-list-item-label {
    display: inline;
}

.c-form input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    /* accent-color: #C8A96A; */
    cursor: pointer;
    margin: 0;
}

/* Privacy Checkbox */
.c-form__check-wrap {
    text-align: center;
    margin: 4rem 0 2rem;
    padding: 2.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #edf2f7;
}

.c-form__check-wrap>p {
    margin: 0;
}

.c-form__check-wrap label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
    font-size: 0.95rem;
}

.c-form input[type="checkbox"],
.c-form__check {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #C8A96A;
    cursor: pointer;
}

.c-form__privacy-check {
    display: inline;
}

.c-form__privacy-check a {
    color: #C8A96A;
    text-decoration: underline;
    font-weight: 700;
}

/* Submit Button */
.c-form__submit {
    text-align: center;
    margin-top: 4rem;
}

.c-form__submit>p {
    margin: 0;
}

.c-form__submit input[type="submit"] {
    background: linear-gradient(135deg, #C8A96A, #B39559);
    color: #fff;
    font-weight: 700;
    padding: 1.25rem 2rem;
    width: 100%;
    max-width: 400px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    box-shadow: 0 4px 20px rgba(200, 169, 106, 0.35);
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .c-form__submit input[type="submit"] {
        padding: 1.25rem 6rem;
        width: auto;
    }
}

.c-form__submit input[type="submit"]:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(200, 169, 106, 0.45);
    opacity: 0.95;
}

.c-form__submit input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Validation Feedback */
.wpcf7-not-valid-tip {
    color: #e53e3e;
    font-size: 0.825rem;
    margin-top: 0.5rem;
    font-weight: 500;
    display: block;
}

.wpcf7-response-output {
    margin: 3rem 0 0 !important;
    padding: 1.25rem !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    text-align: center;
    border: 1px solid transparent !important;
}

.wpcf7-mail-sent-ok {
    background-color: #f0fff4 !important;
    border-color: #c6f6d5 !important;
    color: #22543d !important;
}

.wpcf7-validation-errors {
    background-color: #fff5f5 !important;
    border-color: #fed7d7 !important;
    color: #742a2a !important;
}

.wpcf7-spinner {
    position: absolute;
    bottom: -3.5rem;
    left: 50%;
    transform: translateX(-50%);
}

/* Turnstile CAPTCHA */
.wpcf7-turnstile {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.wpcf7-form-control-wrap {
    width: 100%;
}

p.c-form__label {
    display: block !important;
}