/*
Top Menu Section Styles for Beauty Clinic Theme
美容クリニックテーマ - お問い合わせセクション専用スタイル（水色テーマ #49bfd8）
*/

.subtitle-explanation {
    margin-top: 40px;
}

.contact-text {
    padding-left: 0;
    font-family: 'Shippori Mincho', serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 3.0;
    color: #333333 !important;
}

/* お問い合わせフォームセクション */
.contact-form-section {
    margin-top: 20px;
}

.contact-form {
    max-width: 400px;
    margin: 0 auto;
}

/* フォームグループ */
.form-group {
    margin-bottom: 25px;
}

/* フォームラベル */
.form-label {
    display: block;
    background: #49bfd8; /* 水色に変更 */
    color: #FFFFFF;
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 12px 15px;
    margin-bottom: 8px;
    position: relative;
}

/* 必須マーク */
.form-label.required::after {
    content: '';
    /* 必須マークは既にテキストに含まれているため、追加のスタイリングは不要 */
}

/* フォーム入力フィールド */
.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #333333 !important;
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    color: #333333 !important;
    background: #FFFFFF;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
}

.form-input:focus {
    outline: none;
    border-color: #49bfd8 !important; /* 水色に変更 */
    box-shadow: 0 0 8px rgba(73, 191, 216, 0.3); /* 水色の影に変更 */
}

/* テキストエリア */
.form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #333333 !important;
    border-radius: 5px;
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    color: #333333 !important;
    background: #FFFFFF;
    box-sizing: border-box;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #49bfd8 !important; /* 水色に変更 */
    box-shadow: 0 0 8px rgba(73, 191, 216, 0.3); /* 水色の影に変更 */
}

/* チェックボックスグループ */
.checkbox-group {
    margin: 30px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 700;
    color: #333333 !important;
    line-height: 1.5;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    margin-top: 2px;
    accent-color: #49bfd8; /* 水色に変更 */
    cursor: pointer;
}

.checkbox-text {
    flex: 1;
    letter-spacing: 0.05em;
}

/* プライバシーポリシーリンク */
.privacy-link {
    color: #49bfd8;           /* 水色に変更 */
    text-decoration: underline; /* アンダーライン */
    transition: color 0.3s ease;
    cursor: pointer;
}

.privacy-link:hover {
    color: #3aa9c0;           /* ホバー時は少し濃い水色 */
    text-decoration: none;     /* ホバー時はアンダーライン削除 */
}

.privacy-link:focus {
    outline: 2px solid #49bfd8;  /* フォーカス時のアウトライン */
    outline-offset: 1px;
}

/* 送信ボタングループ */
.form-submit-group {
    text-align: center;
    margin: 40px 0;
}

.form-submit-button {
    background: #FFFFFF;
    border: 1px solid #49bfd8; /* 水色に変更 */
    color: #49bfd8; /* 水色に変更 */
    font-family: 'Shippori Mincho', serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 15px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 230px;
}

.form-submit-button:hover {
    background: #49bfd8; /* 水色に変更 */
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 191, 216, 0.4); /* 水色の影に変更 */
}

.form-submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(73, 191, 216, 0.6); /* 水色の影に変更 */
}

.form-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-input:required:valid,
.form-textarea:required:valid {
    border-color: #4CAF50;
}

/* フォーカス時のアクセシビリティ向上 */
.form-input:focus-visible,
.form-textarea:focus-visible,
.form-checkbox:focus-visible,
.form-submit-button:focus-visible {
    outline: 3px solid #49bfd8; /* 水色に変更 */
    outline-offset: 2px;
}

/* プレースホルダーのスタイル */
.form-input::placeholder,
.form-textarea::placeholder {
    color: #C0C0C0;
    font-style: italic;
}


.thanks-text {
    margin-top: 40px;
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 2.0;
}

.reservation-text {
    padding: 0;
}

@media screen and (min-width: 960px) {
    /* 960px以上に適用されるCSS（PC用） */
    .subtitle-explanation {
        margin-bottom: 50px;
    }

    .contact-text {
        font-size: 16px;
        text-align: center;
    }

    .contact-form {
        max-width: 720px;
    }

    .form-label {
        font-size: 20px;
        padding: 20px 30px;
        margin-bottom: 13px;
    }

    .form-input {
        padding: 15px;
        font-size: 16px;
    }

    .checkbox-label {
        font-size: 20px;
    }

    .form-checkbox {
        width: 40px;
        height: 40px;
    }

    .checkbox-text {
        margin-left: 18px;
    }

    .form-submit-group {
        margin: 60px 0;
    }

    .form-submit-button {
        font-size: 32px;
        width: 320px;
        height: 90px;
        justify-content: center;
        align-items: center;
    }

    .thanks-text {
        margin:  0 auto;
        max-width: 700px;
    }

    .thanks-text p {
        text-align: left;
        font-size: 20px;
        line-height: 3;
    }
}

/*
Contact Form Additional Styles
お問い合わせフォーム追加スタイル - エラー表示、成功メッセージ等
*/

/* エラーメッセージ共通スタイル */
.form-errors-summary {
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    color: #c62828;
}

.form-errors-summary h3 {
    margin: 0 0 15px 0;
    font-family: 'Shippori Mincho', serif;
    font-size: 18px;
    font-weight: 700;
    color: #c62828;
}

.form-errors-summary ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.form-errors-summary li {
    margin-bottom: 8px;
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    line-height: 1.6;
}

/* フィールド別エラーメッセージ */
.form-error {
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 4px;
    color: #c62828;
    font-family: 'Shippori Mincho', serif;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    margin-top: 8px;
    display: block;
}

/* エラー状態のフィールド */
.form-input.error,
.form-textarea.error,
.form-checkbox.error {
    border-color: #ef5350 !important;
    background-color: #fafafa;
}

.form-input.error:focus,
.form-textarea.error:focus {
    border-color: #ef5350 !important;
    box-shadow: 0 0 8px rgba(239, 83, 80, 0.3) !important;
}

/* 送信成功メッセージ */
.contact-success-message {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 40px auto;
}

.success-icon {
    background: #4CAF50;
    border-radius: 50%;
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    height: 100px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.contact-success-message .thanks-text {
    margin: 30px 0 40px;
}

.contact-success-message .thanks-text p {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 2.0;
    color: #333;
}

.success-actions {
    margin-top: 40px;
}

.back-to-home-btn {
    display: inline-block;
    background: #FFFFFF;
    border: 2px solid #49bfd8; /* 水色に変更 */
    color: #49bfd8; /* 水色に変更 */
    font-family: 'Shippori Mincho', serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 15px 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.back-to-home-btn:hover {
    background: #49bfd8; /* 水色に変更 */
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 191, 216, 0.4); /* 水色の影に変更 */
}

/* 文字数カウンタ */
.character-count {
    text-align: right;
    margin-top: 8px;
    font-family: 'Shippori Mincho', serif;
    font-size: 12px;
    color: #333333 !important;
}

.character-count.over-limit {
    color: #ef5350 !important;
    font-weight: 700;
}

.character-count.over-limit #message-count {
    color: #ef5350;
}

/* 送信ボタンのローディング状態 */
.form-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.submit-loading {
    display: none;
}

/* プレースホルダーのスタイル */
.form-input::placeholder,
.form-textarea::placeholder {
    color: #C0C0C0;
    font-style: italic;
    opacity: 0.8;
}

/* フォーカス時のアクセシビリティ向上 */
.form-input:focus-visible,
.form-textarea:focus-visible,
.form-checkbox:focus-visible,
.form-submit-button:focus-visible {
    outline: 3px solid #49bfd8; /* 水色に変更 */
    outline-offset: 2px;
}

/* 必須マークのスタイル */
.form-label.required {
    position: relative;
}

.form-label.required::after {
    content: ' *';
    color: #ef5350;
    font-weight: 700;
}

/* チェックボックスのカスタムスタイル */
.form-checkbox {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 2px solid #49bfd8; /* 水色に変更 */
    border-radius: 3px;
    width: 20px;
    height: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-checkbox:checked {
    background: #49bfd8; /* 水色に変更 */
}

.form-checkbox:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.form-checkbox:focus {
    box-shadow: 0 0 8px rgba(73, 191, 216, 0.5); /* 水色の影に変更 */
}

/* レスポンシブ対応 */
@media screen and (min-width: 960px) {
    .form-errors-summary {
        padding: 30px;
        margin-bottom: 50px;
    }
    
    .form-errors-summary h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .form-errors-summary li {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .form-error {
        font-size: 16px;
        padding: 12px 18px;
        margin-top: 12px;
    }
    
    .contact-success-message {
        padding: 80px 40px;
    }
    
    .success-icon {
        font-size: 64px;
        height: 120px;
        width: 120px;
        margin-bottom: 40px;
    }
    
    .contact-success-message .thanks-text p {
        font-size: 20px;
        line-height: 2.5;
    }
    
    .back-to-home-btn {
        font-size: 24px;
        padding: 20px 40px;
    }
    
    .character-count {
        font-size: 16px;
        margin-top: 12px;
    }
    
    .form-checkbox {
        width: 24px;
        height: 24px;
    }
    
    .form-checkbox:checked::before {
        font-size: 16px;
    }
}

/* 送信処理中のオーバーレイ */
.form-processing {
    position: relative;
}

.form-processing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-success-message {
    animation: fadeIn 0.6s ease-out;
}

.form-error {
    animation: fadeIn 0.3s ease-out;
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
    .form-errors-summary {
        background: #2d1b1b;
        border-color: #d32f2f;
        color: #ffab91;
    }
    
    .form-errors-summary h3 {
        color: #ffab91;
    }
    
    .form-error {
        background: #2d1b1b;
        border-color: #d32f2f;
        color: #ffab91;
    }
    
    .contact-success-message .thanks-text p {
        color: #f5f5f5;
    }
}