/* ============================================
   お問い合わせページ Styles
   ============================================ */

/* Container */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-main {
    background-color: #F5F5F0;
    min-height: 100vh;
}

/* ============================================
   Breadcrumb Section
   ============================================ */
.contact-breadcrumb-section {
    background-color: #6B8E6F;
    padding: 15px 20px;
}

.contact-breadcrumbs {
    font-size: 14px;
    color: white;
}

.contact-breadcrumbs a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-breadcrumbs a:hover {
    opacity: 0.8;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: white;
}

.breadcrumb-current {
    color: white;
}

/* ============================================
   Hero Section
   ============================================ */
.contact-hero-section {
    background: #53834F;
    padding: 60px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.contact-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.1em;
}

.contact-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.contact-dot {
    width: 10px;
    height: 10px;
    background-color: #F5A623;
    border-radius: 50%;
}

/* ============================================
   Form Section
   ============================================ */
.contact-form-section {
    padding: 80px 20px;
}

.contact-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
}

.form-title {
    font-size: 32px;
    font-weight: bold;
    color: #42210B;
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
}

/* ============================================
   Contact Form 7 Styles
   ============================================ */

/* Form Row */
.wpcf7-form .form-row {
    margin-bottom: 30px;
}

/* Labels */
.wpcf7-form .form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.wpcf7-form .required-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #FF4444;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    margin-left: 8px;
}

/* Input Fields */
.wpcf7-form .form-input,
.wpcf7-form .form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    color: #333;
    background-color: #F9F9F9;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.wpcf7-form .form-input:focus,
.wpcf7-form .form-textarea:focus {
    outline: none;
    background-color: white;
    border-color: #6B8E6F;
    box-shadow: 0 0 0 3px rgba(107, 142, 111, 0.1);
}

.wpcf7-form .form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* Placeholder */
.wpcf7-form .form-input::placeholder,
.wpcf7-form .form-textarea::placeholder {
    color: #999;
    font-size: 14px;
}

/* Privacy Row */
.wpcf7-form .privacy-row {
    background-color: #F9F9F9;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #E0E0E0;
}

.wpcf7-form .privacy-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.wpcf7-form .privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wpcf7-form .privacy-checkbox .wpcf7-list-item {
    margin: 0;
}

.wpcf7-form .privacy-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6B8E6F;
    flex-shrink: 0;
    margin-top: 3px;
}

.wpcf7-form .privacy-checkbox label {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    cursor: pointer;
}

.wpcf7-form .privacy-checkbox label a {
    color: #6B8E6F;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.wpcf7-form .privacy-checkbox label a:hover {
    color: #5A7D5E;
}

.wpcf7-form .privacy-checkbox label small {
    display: block;
    margin-top: 8px;
    color: #888;
    font-size: 13px;
}

/* Submit Button */
.wpcf7-form .form-submit-row {
    text-align: center;
    margin-top: 40px;
}

.wpcf7-form .submit-button {
    display: inline-block;
    padding: 18px 60px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #D4A574 0%, #C89968 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.wpcf7-form .submit-button:hover {
    background: linear-gradient(135deg, #C89968 0%, #B8895E 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.wpcf7-form .submit-button:active {
    transform: translateY(0);
}

/* Validation Errors */
.wpcf7-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 8px;
    color: #FF4444;
    font-size: 13px;
    font-weight: 500;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #FF4444 !important;
    background-color: #FFF5F5 !important;
}

/* Response Messages */
.wpcf7-form .wpcf7-response-output {
    margin: 30px 0 0 0;
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
}

.wpcf7-form .wpcf7-mail-sent-ok {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 2px solid #4CAF50;
}

.wpcf7-form .wpcf7-mail-sent-ng,
.wpcf7-form .wpcf7-aborted {
    background-color: #FFEBEE;
    color: #C62828;
    border: 2px solid #EF5350;
}

.wpcf7-form .wpcf7-validation-errors,
.wpcf7-form .wpcf7-acceptance-missing {
    background-color: #FFF9C4;
    color: #F57F17;
    border: 2px solid #FBC02D;
}

.wpcf7-form .wpcf7-spam-blocked {
    background-color: #FFEBEE;
    color: #C62828;
    border: 2px solid #EF5350;
}

/* Loading Spinner */
.wpcf7-form .wpcf7-spinner {
    position: absolute;
    margin-left: 15px;
    margin-top: 22px;
}

/* AJAX Loader */
.wpcf7-form.submitting .submit-button {
    opacity: 0.6;
    cursor: not-allowed;
}

/* List Items (for checkboxes and radio buttons) */
.wpcf7-form .wpcf7-list-item {
    margin: 0 0 10px 0;
}

.wpcf7-form .wpcf7-list-item-label {
    margin-left: 8px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .contact-title {
        font-size: 36px;
    }
    
    .contact-form-wrapper {
        padding: 35px 25px;
    }
    
    .form-title {
        font-size: 26px;
        margin-bottom: 35px;
    }
    
    .wpcf7-form .form-row {
        margin-bottom: 25px;
    }
    
    .wpcf7-form .form-label {
        font-size: 15px;
    }
    
    .wpcf7-form .form-input,
    .wpcf7-form .form-textarea {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .wpcf7-form .privacy-row {
        padding: 20px;
    }
    
    .wpcf7-form .submit-button {
        width: 100%;
        padding: 16px 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact-breadcrumb-section {
        padding: 12px 15px;
    }
    
    .contact-breadcrumbs {
        font-size: 12px;
    }
    
    .contact-hero-section {
        padding: 40px 15px;
    }
    
    .contact-title {
        font-size: 28px;
    }
    
    .contact-dots {
        gap: 8px;
    }
    
    .contact-dot {
        width: 8px;
        height: 8px;
    }
    
    .contact-form-section {
        padding: 50px 15px;
    }
    
    .contact-form-wrapper {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .form-title {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .wpcf7-form .required-badge {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .wpcf7-form .privacy-checkbox {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .wpcf7-form .privacy-checkbox label {
        font-size: 14px;
    }
    
    .wpcf7-form .privacy-checkbox label small {
        font-size: 12px;
    }
}

/* ============================================
   Contact Form 7 Default Style Overrides
   ============================================ */

/* Remove default margins */
.wpcf7-form p {
    margin: 0;
}

/* Remove default br tags styling */
.wpcf7-form br {
    display: none;
}

/* Adjust form element spacing */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    margin: 0;
}

/* Fix for acceptance checkbox alignment */
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

