/* 鷺岡漢方堂薬局 フォーム専用スタイル */

/* パンくずナビ */
.breadcrumb {
    background: #f9f9f9;
    padding: 10px 0;
    margin-bottom: 30px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #2c5530;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ページヘッダー */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
    border-radius: 8px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    color: #555;
}

/* コンタクトラッパー */
.contact-wrapper {
    display: grid;
    gap: 40px;
}

/* 連絡先情報セクション */
.contact-info-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-info-section h2 {
    color: #2c5530;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.method {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.method:hover {
    border-color: #2c5530;
    background: #f1f8e9;
}

.method h3 {
    color: #2c5530;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.phone-large {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.phone-large a {
    color: #2c5530;
    text-decoration: none;
}

.phone-large a:hover {
    text-decoration: underline;
}

.method p {
    margin: 8px 0;
    line-height: 1.6;
}

.method a {
    color: #2c5530;
    text-decoration: none;
}

.method a:hover {
    text-decoration: underline;
}

/* フォームセクション */
.contact-form-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form-section h2 {
    color: #2c5530;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #2c5530;
    padding-bottom: 10px;
}

.form-note {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 30px;
    border-left: 4px solid #2196f3;
}

.required-note {
    color: #d32f2f;
    font-weight: bold;
}

/* フォームセクション */
.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.form-section h3 {
    color: #2c5530;
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2c5530;
}

/* フォームグループ */
.form-group {
    margin-bottom: 25px;
}

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

.required {
    color: #d32f2f;
    font-weight: bold;
    margin-left: 3px;
}

/* フォーム入力要素 */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2c5530;
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

input[type="text"].error,
input[type="email"].error,
input[type="tel"].error,
select.error,
textarea.error {
    border-color: #d32f2f;
}

/* テキストエリア */
textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* セレクトボックス */
select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23666' d='m0 0 2 2 2-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

/* チェックボックスグループ */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal !important;
    margin-bottom: 0 !important;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.checkbox-label:hover {
    background-color: #f1f8e9;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-bottom: 0;
    transform: scale(1.2);
}

/* プライバシーチェック */
.privacy-check {
    background: #fff3e0;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ffb74d;
}

.privacy-check a {
    color: #2c5530;
    text-decoration: underline;
}

/* 小さなテキスト */
small {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

/* エラーメッセージ */
.error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* 送信ボタンエリア */
.form-submit {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.submit-btn,
.reset-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
    min-width: 150px;
}

.submit-btn {
    background: #2c5530;
    color: #fff;
}

.submit-btn:hover {
    background: #4a7c59;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.reset-btn {
    background: #fff;
    color: #666;
    border: 2px solid #ddd;
}

.reset-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* アクティブナビゲーション */
.nav-menu a.active {
    background-color: #4a7c59;
    color: #fff;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
    .contact-form-section {
        padding: 25px 20px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .form-submit {
        padding: 20px 0;
    }
    
    .submit-btn,
    .reset-btn {
        display: block;
        width: 100%;
        margin: 10px 0;
        min-width: auto;
    }
}

@media screen and (max-width: 480px) {
    .contact-form-section {
        padding: 20px 15px;
    }
    
    .form-section {
        padding: 15px 10px;
    }
    
    .page-header {
        padding: 20px 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .submit-btn,
    .reset-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* フォームアニメーション */
.form-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 入力時のアニメーション */
.form-group {
    position: relative;
}

.form-group input:focus + .floating-label,
.form-group input:not(:placeholder-shown) + .floating-label {
    transform: translateY(-25px) scale(0.8);
    color: #2c5530;
}

/* 成功・エラーメッセージ */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin: 20px 0;
    animation: slideInDown 0.5s ease-out;
}

.error-message.global {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px 0;
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}