/* ==========================================
   お問い合わせフォーム専用CSS
   ========================================== */

.contact-form {
    background-color: var(--white);
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
}

.required {
    display: inline-block;
    background-color: #DC2626;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.error {
    border-color: #DC2626;
}

.error-message {
    display: none;
    color: #DC2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
}

.form-button-group {
    margin-top: 3rem;
    text-align: center;
}

.btn-large {
    padding: clamp(1.25rem, 3vw, 1.5rem) clamp(3rem, 6vw, 5rem);
    font-size: clamp(1rem, 2vw, 1.125rem);
}

/* 確認画面 */
.confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
}

.confirm-table th,
.confirm-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--light-gray);
    text-align: left;
    vertical-align: top;
}

.confirm-table th {
    font-weight: 700;
    width: 30%;
    background-color: var(--light-gray);
}

@media (max-width: 768px) {
    .confirm-table th,
    .confirm-table td {
        display: block;
        width: 100%;
    }
    
    .confirm-table th {
        padding-bottom: 0.5rem;
    }
    
    .confirm-table td {
        padding-top: 0.5rem;
    }
}

.button-group-horizontal {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 完了画面 */
.thanks-message {
    text-align: center;
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.thanks-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 2rem;
}

.thanks-message h2 {
    margin-bottom: 1.5rem;
}

.thanks-message p {
    max-width: 700px;
    margin: 0 auto 3rem;
}
