/* Beauty Studio Color お問い合わせフォーム 外部CSS */

/* 基本設定 */
.beauty-contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Noto Sans JP', sans-serif;
}

.beauty-contact-header {
    text-align: left;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: none !important;
}

.header-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #4caf50;
}

.beauty-contact-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.beauty-contact-header p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.beauty-contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* セクション */
.form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    color:  #4caf50;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: "●";
    font-size: 0.8rem;
}

.menu-category-title {
    color:  #4caf50;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-left: 3px solid  #4caf50;
    border-radius: 0 5px 5px 0;
}

.submenu-section {
    margin-bottom: 25px;
}

.submenu-title {
    color: #555;
    font-size: 1rem;
    margin-bottom: 12px;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    border-left: 2px solid  #4caf50;
}

/* エラー・成功メッセージ */
.error-message,
.success-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* フォーム基本要素 */
.form-row {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.required {
    color: #e74c3c;
    margin-left: 3px;
    font-size: 12px;
    background-color: #ffebee;
    padding: 2px 6px;
    border-radius: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* チェックボックス・ラジオボタンのグリッド */
.checkbox-grid,
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.checkbox-item:hover,
.radio-item:hover {
    border-color: #4caf50;
    background-color: #f8fff8;
}

.checkbox-item input:checked+.checkmark,
.radio-item input:checked+.radio-mark {
    background-color: #4caf50;
    border-color: #4caf50;
}

.checkbox-item input:checked+.checkmark+.menu-info,
.radio-item input:checked+.radio-mark+.menu-info {
    color: #333;
}

.checkbox-item input,
.radio-item input {
    display: none;
}

.checkmark,
.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkmark {
    border-radius: 4px;
}

.radio-mark {
    border-radius: 50%;
}

.checkmark::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: block;
    text-align: center;
    line-height: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.radio-mark::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    margin: 4px;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-item input:checked+.checkmark::after,
.radio-item input:checked+.radio-mark::after {
    opacity: 1;
}

/* メニュー情報 */
.menu-info {
    flex: 1;
}

.menu-name {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.menu-price {
    display: block;
    font-weight: bold;
    color:  #4caf50;
    font-size: 16px;
    margin-bottom: 4px;
}

.menu-description {
    display: block;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.badge {
    background-color: #ff9a8b;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* 通常のラジオボタングループ */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.radio-label input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

/* チェックボックスグループ */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-top: 2px;
}

.checkbox-label a {
    color:  #4caf50;
    text-decoration: underline;
}

/* スパム対策フィールド */
.honeypot-field {
    position: absolute !important;
    left: -5000px !important;
    opacity: 0 !important;
}

/* reCAPTCHA */
.recaptcha-group {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

/* 送信ボタン */
.form-submit {
    text-align: center;
    margin-top: 30px;
}

.beauty-submit-btn {
    background-color: #4caf50 !important;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.beauty-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.beauty-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.beauty-submit-btn i {
    font-size: 14px;
}

/* 緊急連絡先 */
.urgent-contact {
    background: linear-gradient(135deg, #f8fcf7 0%, #edf6ed 100%);
    border: 2px solid #d8ebd3;
    border-radius: 16px;
    padding: 24px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(139, 184, 138, 0.08);
    position: relative;
    overflow: hidden;
    border-color: #d8ebd3!important;
}

.urgent-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.urgent-icon {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
    animation: pulse 2s infinite;
}

.urgent-title {
    font-size: 18px;
    font-weight: bold;
    color: #2e7d32;
    margin: 0;
    letter-spacing: 0.5px;
}

.urgent-subtitle {
    font-size: 13px;
    color: #558b2f;
    margin: 4px 0 0 0;
    opacity: 0.9;
}

.contact-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.contact-option {
    background: white;
    border: 2px solid #e8f5e9;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-option:hover::before {
    left: 100%;
}

.contact-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.15);
    border-color: #4caf50;
}

.contact-option-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.phone-option .contact-option-icon {
    color: #1976d2;
}

.line-option .contact-option-icon {
    color: #06c755;
}

.contact-option-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
    color: #333;
}

.contact-option-number {
    font-size: 18px;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 8px;
}

.line-option .contact-option-number {
    color: #06c755;
    font-size: 16px;
}

.contact-option-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.business-hours {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.business-hours-title {
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}


/* ========== 予約日時用のスタイル（追加部分） ========== */

/* 予約に関する注意事項 */
.reservation-note {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

/* 各予約希望のグループ */
.reservation-group {
    background-color: #fafafa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

/* 予約希望のタイトル */
.reservation-title {
    color: #4caf50;
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 日付入力フィールドのスタイル調整 */
input[type="date"] {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    color: #4caf50;
    cursor: pointer;
}

/* 時間選択セレクトボックスのグループ化 */
optgroup {
    font-weight: bold;
    color: #333;
    padding: 5px 0;
}

optgroup option {
    font-weight: normal;
    color: #555;
    padding: 3px 0;
}

/* 予約制時間の強調 */
option[value*="予約制"] {
    color: #ff6b35;
    font-style: italic;
}

/* 無効化される日付・時間のスタイル */
.date-disabled {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
}

.time-disabled {
    background-color: #f5f5f5 !important;
    color: #999 !important;
}


/* エラーメッセージ用スタイル */
.date-error,
.time-error {
    color: #c62828;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .beauty-contact-form-wrapper {
        padding: 15px;
    }

    .beauty-contact-form {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .checkbox-grid,
    .radio-grid {
        grid-template-columns: 1fr;
    }

    .beauty-contact-header h2 {
        font-size: 1.2rem;
    }

    .beauty-submit-btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .urgent-contact {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .reservation-group {
        padding: 15px;
    }

    .reservation-note {
        padding: 12px;
        font-size: 12px;
    }

    .reservation-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .beauty-contact-form {
        padding: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
    }

    .checkbox-item,
    .radio-item {
        padding: 12px;
    }

    .menu-name {
        font-size: 13px;
    }

    .menu-price {
        font-size: 14px;
    }

    .urgent-contact {
        padding: 20px 16px;
        margin: 20px 0;
    }

    .contact-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .urgent-title {
        font-size: 16px;
    }

    .contact-option {
        padding: 16px 12px;
    }

    .contact-option-title {
        font-size: 15px;
    }

    .contact-option-number {
        font-size: 16px;
    }
}
