@import url('/css/variables.css');

/* ============================================================
   Smartmart 買取査定申込み — MacClaw-inspired クリーンレイアウト
   prefix: sa-
   ============================================================ */

/* --- Page Hero --- */
.sa-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--kaitori-gradient-end) 100%);
    color: #fff;
    padding: 56px 0 48px;
    text-align: center;
}

.sa-hero__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.sa-hero__subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* --- Section / Container --- */
.sa-section {
    padding: 56px 0 80px;
    background: var(--bg-secondary);
    min-height: 60vh;
}

.sa-container {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Steps Row --- */
.sa-steps-section {
    padding: 40px 0;
    background: var(--bg-primary);
}

.sa-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sa-step-card {
    background: var(--bg-primary);
    padding: 28px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s, transform 0.2s;
}

.sa-step-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.sa-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--primary-color);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.sa-step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.sa-step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Form Container --- */
.sa-form-wrap {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 40px 44px;
    box-shadow: var(--shadow-sm);
}

.sa-form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

/* --- Section Heading inside form --- */
.sa-section-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.sa-section-heading:first-of-type {
    margin-top: 0;
}

/* --- Notice Bar --- */
.sa-notice {
    background: #eff6ff;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 28px;
    font-size: 13px;
    color: #1d4ed8;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sa-notice__icon {
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- Form Group --- */
.sa-group {
    margin-bottom: 20px;
}

.sa-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.sa-required {
    color: var(--error-color);
    margin-left: 2px;
}

.sa-input,
.sa-select,
.sa-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.sa-input:focus,
.sa-select:focus,
.sa-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(6, 104, 225, 0.1);
}

.sa-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='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.sa-textarea {
    min-height: 112px;
    resize: vertical;
    line-height: 1.6;
}

/* --- Row (2-column) --- */
.sa-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* --- Radio Group --- */
.sa-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.sa-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    cursor: pointer;
}

.sa-radio-label input[type="radio"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* --- Checkbox --- */
.sa-checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1.5;
}

.sa-checkbox-label input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.sa-checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.sa-checkbox-label a:hover {
    text-decoration: underline;
}

/* --- Submit Button --- */
.sa-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    margin-top: 28px;
    font-family: inherit;
}

.sa-submit:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.sa-submit:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   完了ページ専用
   ============================================================ */

.sa-complete-section {
    padding: 56px 0 80px;
    background: var(--bg-secondary);
    min-height: 60vh;
}

.sa-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 44px 48px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.sa-success-icon {
    font-size: 64px;
    color: var(--success-color);
    margin-bottom: 16px;
    line-height: 1;
}

.sa-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.sa-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0;
}

/* --- Assessment Info --- */
.sa-info-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin: 28px 0;
    text-align: left;
}

.sa-info-box-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sa-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 16px;
}

.sa-info-row:last-child {
    border-bottom: none;
}

.sa-info-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.sa-info-value {
    font-size: 14px;
    color: var(--text-primary);
    text-align: right;
    word-break: break-all;
}

/* --- Next Steps --- */
.sa-next-steps {
    background: #eff6ff;
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin: 28px 0;
    text-align: left;
}

.sa-next-steps-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.sa-step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.sa-step-item:last-child {
    margin-bottom: 0;
}

.sa-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.sa-step-body {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.7;
}

.sa-step-body strong {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

/* --- Contact Box --- */
.sa-contact-box {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 24px 0;
    text-align: left;
}

.sa-contact-box-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.sa-contact-box-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.7;
}

.sa-contact-item {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 2;
}

.sa-contact-item .fas {
    color: var(--primary-color);
    width: 16px;
    margin-right: 4px;
}

/* --- Back Button --- */
.sa-back-actions {
    margin-top: 36px;
}

.sa-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.sa-btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .sa-hero {
        padding: 40px 0 32px;
    }

    .sa-hero__title {
        font-size: 24px;
    }

    .sa-steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sa-form-wrap {
        padding: 24px 20px;
    }

    .sa-row {
        grid-template-columns: 1fr;
    }

    .sa-card {
        padding: 28px 20px;
    }

    .sa-info-box,
    .sa-next-steps {
        padding: 20px 20px;
    }

    .sa-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .sa-info-value {
        text-align: left;
    }
}
