/**
 * Print Rescue - Order Form Styles
 *
 * @package Print_Rescue
 */

/* ============================
   フォーム全体
   ============================ */
.pr-order-form-wrap {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================
   価格表
   ============================ */
.pr-price-section {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.pr-price-tables {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pr-price-table-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pr-price-table-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--pr-text);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pr-primary);
}

.pr-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pr-price-table th,
.pr-price-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.pr-price-table th {
    background: var(--pr-primary);
    color: #fff;
    font-weight: 500;
}

.pr-price-table th:first-child {
    border-radius: 4px 0 0 0;
}

.pr-price-table th:last-child {
    border-radius: 0 4px 0 0;
}

.pr-price-table tbody tr:hover {
    background: #f5f5f5;
}

.pr-price-table tbody td:first-child {
    font-weight: 500;
    background: #fafafa;
}

.pr-price-note {
    font-size: 13px;
    color: var(--pr-text-light);
    text-align: right;
    margin: 16px 0 0;
}

.pr-price-tables-4col {
    grid-template-columns: repeat(4, 1fr);
}

.pr-price-table-desc {
    font-size: 12px;
    color: var(--pr-text-light);
    margin: 0 0 8px;
}

.pr-price-table-note {
    font-size: 11px;
    color: #e74c3c;
    margin: 8px 0 0;
    line-height: 1.5;
}

.pr-price-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.pr-price-table-full {
    width: 100%;
    max-width: 100%;
}

/* ============================
   プログレスバー
   ============================ */
.pr-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.pr-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pr-progress-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pr-border);
    color: var(--pr-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pr-progress-step.active .pr-progress-number {
    background: var(--pr-primary);
    color: #fff;
}

.pr-progress-step.completed .pr-progress-number {
    background: var(--pr-success);
    color: #fff;
}

.pr-progress-label {
    font-size: 12px;
    color: var(--pr-text-light);
    margin-top: 8px;
}

.pr-progress-step.active .pr-progress-label {
    color: var(--pr-primary);
    font-weight: bold;
}

.pr-progress-line {
    width: 60px;
    height: 2px;
    background: var(--pr-border);
    margin: 0 15px;
    margin-bottom: 20px;
}

/* ============================
   セクション
   ============================ */
.pr-form-section {
    background: var(--pr-bg-white);
    border-radius: var(--pr-radius);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--pr-shadow);
}

.pr-section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--pr-text);
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pr-primary);
}

.pr-product-desc {
    font-size: 14px;
    color: var(--pr-text-light);
    margin: -16px 0 24px;
    padding-left: 4px;
}

/* ============================
   フォームグループ
   ============================ */
.pr-form-group {
    margin-bottom: 24px;
}

.pr-form-group:last-child {
    margin-bottom: 0;
}

.pr-label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--pr-text);
}

.pr-label small {
    font-weight: normal;
    color: var(--pr-text-light);
    margin-left: 8px;
}

.pr-required {
    background: var(--pr-error);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: normal;
}

/* ============================
   入力フィールド
   ============================ */
.pr-input,
.pr-select,
.pr-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius);
    background: var(--pr-bg-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.pr-input:focus,
.pr-select:focus,
.pr-textarea:focus {
    outline: none;
    border-color: var(--pr-primary);
    box-shadow: 0 0 0 3px rgba(196, 92, 62, 0.1);
}

.pr-input.error,
.pr-select.error,
.pr-textarea.error {
    border-color: var(--pr-error);
}

.pr-input-zip {
    max-width: 180px;
}

.pr-textarea {
    resize: vertical;
    min-height: 120px;
}

.pr-select {
    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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ============================
   ラジオ・チェックボックス
   ============================ */
.pr-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pr-radio-group.pr-radio-vertical {
    flex-direction: column;
}

.pr-radio,
.pr-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.pr-radio input,
.pr-checkbox input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: var(--pr-primary);
}

.pr-radio-text,
.pr-checkbox-text {
    font-size: 14px;
}

.pr-paper-group-label {
    font-size: 13px;
    color: var(--pr-text-light);
    margin: 16px 0 8px;
    padding-left: 4px;
}

.pr-paper-group-label:first-of-type {
    margin-top: 0;
}

.pr-sub-label {
    font-size: 13px;
    color: var(--pr-text-light);
    margin: 12px 0 8px;
    font-weight: bold;
}

.pr-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================
   ファイルアップロード
   ============================ */
.pr-file-upload {
    position: relative;
}

.pr-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pr-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed var(--pr-border);
    border-radius: var(--pr-radius);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.pr-file-label:hover {
    border-color: var(--pr-primary);
    background: var(--pr-bg);
}

.pr-file-icon {
    font-size: 24px;
    margin-right: 12px;
}

.pr-file-text {
    color: var(--pr-text-light);
}

.pr-file-name {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--pr-success);
}

.pr-help-text {
    font-size: 12px;
    color: var(--pr-text-light);
    margin-top: 8px;
}

/* ============================
   テンプレート選択
   ============================ */
.pr-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.pr-template-item {
    cursor: pointer;
    text-align: center;
}

.pr-template-item input {
    display: none;
}

.pr-template-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--pr-border);
    border-radius: var(--pr-radius);
    padding: 8px;
    transition: border-color 0.3s ease;
    background: var(--pr-bg);
    min-height: 60px;
}

.pr-template-item input:checked + .pr-template-thumb {
    border-color: var(--pr-primary);
    background: rgba(196, 92, 62, 0.05);
}

.pr-template-thumb img {
    max-width: 100%;
    height: auto;
}

.pr-template-placeholder {
    font-size: 10px;
    color: var(--pr-text-light);
}

.pr-template-name {
    display: block;
    font-size: 11px;
    color: var(--pr-text-light);
    margin-top: 4px;
}

/* ============================
   郵便番号検索
   ============================ */
.pr-input-with-btn {
    display: flex;
    gap: 8px;
}

.pr-btn-zip {
    padding: 12px 16px;
    background: var(--pr-secondary);
    color: #fff;
    border: none;
    border-radius: var(--pr-radius);
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.pr-btn-zip:hover {
    background: #5a7a6a;
}

/* ============================
   ボタン
   ============================ */
.pr-form-actions {
    text-align: center;
    margin-top: 32px;
}

.pr-form-actions-confirm {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.pr-btn {
    display: inline-block;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: var(--pr-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pr-btn-primary {
    background: var(--pr-primary);
    color: #fff;
}

.pr-btn-primary:hover {
    background: var(--pr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 92, 62, 0.3);
}

.pr-btn-secondary {
    background: var(--pr-bg);
    color: var(--pr-text);
    border: 1px solid var(--pr-border);
}

.pr-btn-secondary:hover {
    background: var(--pr-border);
}

.pr-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================
   同意チェック
   ============================ */
.pr-agree {
    text-align: center;
    padding: 20px;
    background: var(--pr-bg);
    border-radius: var(--pr-radius);
}

.pr-agree a {
    color: var(--pr-primary);
}

/* ============================
   エラーメッセージ
   ============================ */
.pr-error-message {
    display: block;
    color: var(--pr-error);
    font-size: 12px;
    margin-top: 4px;
}

/* ============================
   確認画面
   ============================ */
.pr-confirm-wrap {
    background: var(--pr-bg-white);
    border-radius: var(--pr-radius);
    padding: 30px;
    box-shadow: var(--pr-shadow);
}

.pr-confirm-lead {
    text-align: center;
    color: var(--pr-text-light);
    margin-bottom: 30px;
}

.pr-confirm-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--pr-border);
}

.pr-confirm-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pr-confirm-heading {
    font-size: 16px;
    font-weight: bold;
    color: var(--pr-primary);
    margin: 0 0 16px;
}

.pr-confirm-list {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px 16px;
}

.pr-confirm-list dt {
    font-weight: bold;
    color: var(--pr-text-light);
    font-size: 13px;
}

.pr-confirm-list dd {
    margin: 0;
}

.pr-confirm-pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: inherit;
    background: var(--pr-bg);
    padding: 12px;
    border-radius: var(--pr-radius);
}

/* ============================
   完了画面
   ============================ */
.pr-complete-wrap {
    text-align: center;
    background: var(--pr-bg-white);
    border-radius: var(--pr-radius);
    padding: 50px 30px;
    box-shadow: var(--pr-shadow);
}

.pr-complete-icon {
    width: 80px;
    height: 80px;
    background: var(--pr-success);
    color: #fff;
    font-size: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.pr-complete-title {
    font-size: 24px;
    margin: 0 0 16px;
}

.pr-complete-message {
    color: var(--pr-text-light);
    margin-bottom: 30px;
}

.pr-complete-order-number {
    background: var(--pr-bg);
    padding: 20px;
    border-radius: var(--pr-radius);
    display: inline-block;
    margin-bottom: 40px;
}

.pr-complete-label {
    display: block;
    font-size: 12px;
    color: var(--pr-text-light);
    margin-bottom: 4px;
}

.pr-complete-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--pr-primary);
    letter-spacing: 1px;
}

.pr-complete-flow {
    text-align: left;
    background: var(--pr-bg);
    padding: 30px;
    border-radius: var(--pr-radius);
    margin-bottom: 30px;
}

.pr-complete-flow h4 {
    margin: 0 0 20px;
    text-align: center;
}

.pr-complete-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pr-complete-steps li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.pr-complete-steps li:last-child {
    margin-bottom: 0;
}

.pr-step-number {
    width: 28px;
    height: 28px;
    background: var(--pr-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.pr-step-text {
    font-size: 14px;
}

.pr-complete-contact {
    margin-bottom: 30px;
}

.pr-complete-tel {
    font-size: 20px;
    font-weight: bold;
}

.pr-complete-tel a {
    color: var(--pr-primary);
    text-decoration: none;
}

.pr-complete-actions {
    margin-top: 30px;
}

/* ============================
   レスポンシブ
   ============================ */
@media (max-width: 1024px) {
    .pr-price-tables-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pr-price-tables {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pr-price-tables-4col {
        grid-template-columns: 1fr;
    }

    .pr-price-table-wrap {
        padding: 12px;
    }

    .pr-price-table {
        font-size: 13px;
    }

    .pr-price-table th,
    .pr-price-table td {
        padding: 8px 4px;
    }
}

@media (max-width: 600px) {
    .pr-progress-line {
        width: 30px;
        margin: 0 8px;
    }

    .pr-progress-label {
        font-size: 10px;
    }

    .pr-form-section {
        padding: 20px;
    }

    .pr-template-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pr-confirm-list {
        grid-template-columns: 1fr;
    }

    .pr-confirm-list dt {
        margin-bottom: -8px;
    }

    .pr-btn {
        width: 100%;
        padding: 14px 24px;
    }

    .pr-form-actions-confirm {
        flex-direction: column-reverse;
    }

    .pr-price-table {
        font-size: 12px;
    }

    .pr-price-table th,
    .pr-price-table td {
        padding: 6px 2px;
    }

    .pr-price-table-title {
        font-size: 14px;
    }
}
