/* ============================
   Contact Form Section
   LP最下部・常設直書き型問い合わせフォーム
   ============================ */

.section-contact-form {
    background: linear-gradient(135deg, #EAF0FF 0%, #F5F8FC 100%);
    padding: 100px 0;
    position: relative;
}

/* セクションヘッダー */
.contact-form-header {
    text-align: center;
    margin-bottom: 48px;
}

.contact-form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1B2430;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.contact-form-subtitle {
    font-size: 1rem;
    color: #5B6B82;
    font-weight: 400;
    line-height: 1.6;
}

/* フォームコンテナ */
.contact-form-container {
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(31, 79, 216, 0.12);
    border: 1px solid rgba(31, 79, 216, 0.08);
}

/* フォームステップタイトル */
.form-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #EAF0FF;
}

.form-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1F4FD8 0%, #4B7BFF 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.form-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1B2430;
    letter-spacing: 0.02em;
}

/* フォームグリッド */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.form-field-full {
    grid-column: 1 / -1;
}

/* フォームフィールド */
.form-field {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1B2430;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-required {
    color: #E5533D;
    font-size: 0.75rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    color: #1B2430;
    background: #ffffff;
    border: 1.5px solid #D8DFEA;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #1F4FD8;
    box-shadow: 0 0 0 3px rgba(31, 79, 216, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #94A3B8;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-select {
    cursor: pointer;
    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='%235B6B82' d='M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

/* エラー表示 */
.form-error {
    color: #E5533D;
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
}

.form-field.error .form-input,
.form-field.error .form-select,
.form-field.error .form-textarea {
    border-color: #E5533D;
}

.form-field.error .form-error {
    display: block;
}

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

.form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 48px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #1F4FD8 0%, #4B7BFF 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(31, 79, 216, 0.3);
    min-width: 240px;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 79, 216, 0.4);
}

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

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-submit-btn i {
    font-size: 1rem;
}

/* 送信中・完了状態 */
.form-submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 送信完了メッセージ */
.form-success-message {
    display: none;
    text-align: center;
    padding: 48px 32px;
}

.form-success-message.show {
    display: block;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1FBF75 0%, #10B981 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.form-success-icon i {
    font-size: 32px;
    color: #ffffff;
}

.form-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B2430;
    margin-bottom: 12px;
}

.form-success-text {
    font-size: 1rem;
    color: #5B6B82;
    line-height: 1.6;
}

/* プライバシーポリシー注記 */
.form-privacy-note {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #EAF0FF;
    text-align: center;
}

.form-privacy-note p {
    font-size: 0.75rem;
    color: #94A3B8;
    line-height: 1.6;
}

.form-privacy-note a {
    color: #1F4FD8;
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .section-contact-form {
        padding: 60px 0;
    }
    
    .contact-form-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .contact-form-subtitle {
        font-size: 0.875rem;
    }
    
    .contact-form-container {
        padding: 32px 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-step-title {
        font-size: 1.125rem;
    }
    
    .form-submit-btn {
        width: 100%;
        min-width: auto;
        padding: 14px 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .form-step-header {
        margin-bottom: 24px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 14px;
        font-size: 0.9375rem;
    }
    
    .form-textarea {
        min-height: 100px;
    }
}
