/**
 * ステップフォーム用CSS
 */

section.contact-step-form {
    padding: 15vh 0 10vh;
    min-height: 100vh;
}

section.contact-step-form .container {
    max-width: 700px;
}

.contact-step-form__container {
    max-width: 1200px;
    margin: 0 auto;
}

/* プログレスバー */
.contact-step-progress {
    margin-bottom: 60px;
}

.contact-step-progress__bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.contact-step-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #8B7355 0%, #428570 100%);
    width: 33.33%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-step-progress__labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-step-progress__label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-step-progress__label.active {
    color: #8B7355;
}

.contact-step-progress__label.completed {
    color: #428570;
}

.contact-step-progress__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.contact-step-progress__label.active .contact-step-progress__num {
    background: #8B7355;
    color: white;
}

.contact-step-progress__label.completed .contact-step-progress__num {
    background: #428570;
    color: white;
}

.contact-step-progress__text {
    font-weight: 500;
}

/* ステップコンテナ */
.contact-step {
    opacity: 1;
    transform: translateX(0);
}

.contact-step__title {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-natural-brown);
    text-align: center;
    margin-bottom: 16px;
}

.contact-step__description {
    text-align: center;
    color: var(--color-text-light);
    font-size: 16px;
    margin-bottom: 48px;
}

/* 問い合わせ種別セレクト */
.contact-type-select-wrapper {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 48px 0;
}

.contact-type-select-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B7355 0%, #428570 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
}

.contact-type-select {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B7355' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

.contact-type-select:hover {
    border-color: #8B7355;
}

.contact-type-select:focus {
    outline: none;
    border-color: #8B7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.contact-type-next-btn {
    width: 100%;
    margin-top: 24px;
    padding: 18px 32px;
    background: linear-gradient(135deg, #8B7355 0%, #428570 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.contact-type-next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 115, 85, 0.3);
}

.contact-type-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.contact-type-next-btn i {
    transition: transform 0.3s ease;
}

.contact-type-next-btn:hover:not(:disabled) i {
    transform: translateX(4px);
}

/* Step 2: フォーム */
.contact-step__header {
    margin-bottom: 40px;
}

.contact-step__back {
    background: none;
    border: none;
    color: #8B7355;
    font-size: 16px;
    cursor: pointer;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.contact-step__back:hover {
    gap: 12px;
    color: #428570;
}

.contact-step__selected-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.1) 0%, rgba(66, 133, 112, 0.1) 100%);
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 14px;
    color: #8B7355;
    margin-top: 16px;
}

.contact-step__selected-type i {
    color: #428570;
}

form.contact-step-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
}

/* ローディングボタン */
.btn-text,
.btn-loader {
    transition: all 0.3s ease;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loader {
    display: inline-block !important;
}

/* レスポンシブ */
@media (max-width: 768px) {
    section.contact-step-form {
        padding: 100px 0 60px;
    }

    .contact-step__title {
        font-size: 24px;
    }

    .contact-type-select-wrapper {
        padding: 32px 24px;
    }

    form.contact-step-form {
        padding: 32px 24px;
    }

    .contact-step-progress__text {
        display: none;
    }
}

/* アニメーション用クラス */
.fade-out-left {
    animation: fadeOutLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-right {
    animation: fadeInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
