/**
 * NetSupport 見積もりシミュレーター - 画面表示スタイル
 * 
 * 見積もりフォームの画面表示用スタイルを定義します。
 * 印刷用スタイルは quote-form-print.css を参照してください。
 * 
 * @package NetSupport Quote Simulator
 * @version 1.0.0
 * @since 1.0.0
 */

/* ======================================
   画面表示用スタイル
   ====================================== */
.quote-form-container {
    max-width: 980px;
    margin: 80px auto 90px;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    border: 1px solid #ddd;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

.quote-form-title {
    font-size: 34px !important;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
    margin-top: 0 !important;
    padding-top: 15px !important;
}

.quote-form-group {
    margin-bottom: 25px;
}

.quote-form-group--section {
    margin-bottom: 45px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.quote-form-intro {
    font-size: 17px !important;
    color: #000000;
    margin-bottom: 40px !important;
    padding: 12px 16px;
    background: #f0f6fb;
    border-radius: 4px;
    text-align: center;
}

.quote-form-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.quote-form-select,
.quote-form-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.quote-form-select:focus,
.quote-form-input:focus {
    outline: none;
    border-color: #0073aa;
}

.quote-form-input {
    max-width: 200px;
}

/* number型inputのスピナー（上下ボタン）を表示 */
.quote-form-input[type="number"]::-webkit-inner-spin-button,
.quote-form-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: auto;
    opacity: 1;
}

/* ラジオボタンスタイル */
.quote-form-radio-group {
    display: flex;
    gap: 20px;
}

.quote-form-radio-group--vertical {
    flex-direction: column;
    gap: 8px;
}

.quote-form-radio-option {
    display: inline-block;
    margin-right: 20px;
}

.quote-form-radio-option input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.quote-form-radio-option label {
    cursor: pointer;
    margin-left: 5px;
}

.quote-form-error {
    color: #f98054;
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
}

.quote-form-button {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.quote-form-button:hover {
    background: #005a87;
}

.quote-form-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.quote-contact-button {
    background: #f98054;

}

.quote-contact-button:visited {
    color: #ffffff !important;
}

.quote-contact-button:hover {
    background: #da5e31;
    color: #ffffff !important;
}

/* 問い合わせセクション */
.quote-contact-section {
    margin-top: 40px;
    padding: 30px 35px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 2px solid #ddd;
}

.quote-contact-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.quote-contact-text {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

.quote-contact-button-link {
    text-decoration: none;
    margin-top: 15px;
}

.quote-form-required {
    color: #d63638;
}

.quote-form-required-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: #f39c12;
    border-radius: 2px;
    vertical-align: middle;
}

.quote-license-note {
    margin-top: 10px;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.quote-license-note p {
    margin: 0 0 6px;
}

#license-group .quote-license-note p:first-child {
    margin-bottom: 0;
}

.quote-maintenance-note .quote-note-link-group {
    display: inline-block;
    max-width: 100%;
}

.quote-maintenance-note .quote-note-link-group .quote-note-link-text,
.quote-maintenance-note .quote-note-link-group .quote-note-link {
    margin: 0 0 6px;
}

.quote-maintenance-note .quote-note-link {
    text-align: right;
}

/* 結果表示エリア */
.quote-result {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.quote-result-hidden {
    display: none;
}

.quote-result-title {
    font-size: 22px !important;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px !important;
}

.quote-result-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #ffffff;
}

.quote-result-table th,
.quote-result-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 18px !important;
    vertical-align: middle;
}

.quote-result-table th {
    background: #f7f7f7;
    font-weight: 600;
    color: #333;
    text-align: center;
    vertical-align: middle;
}

.quote-result-table td {
    color: #000000;
    text-align: left;
}

/* 数量・単価・金額の列は右揃え */
.quote-result-table td:nth-child(2),
.quote-result-table td:nth-child(3),
.quote-result-table td:nth-child(4) {
    text-align: right;
}

.quote-result-table tr:hover {
    background: #f9f9f9;
}

.quote-total {
    font-size: 22px;
    font-weight: bold;
    color: #0073aa;
    text-align: right;
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 4px;
}

.quote-total #result-total {
    font-size: 32px;
}

.quote-tax-note {
    text-align: right;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.quote-result-note {
    margin-top: 12px;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

.quote-result-note p:first-of-type {
    margin-bottom: 5px !important;
}

.quote-result-note p {
    margin: 0 0 6px;
}

/* 印刷用に表示される要素（画面では非表示） */
.print-only {
    display: none;
}

.print-only-inline {
    display: none;
}

.screen-only-inline {
    display: inline;
}

.quote-tax-inline {
    font-size: 90%;
}

/* 印刷スタイルは css/quote-form-print.css に分離 */
@media (max-width: 1000px) {
    .quote-form-container {
        width: 95%;
    }
}

@media (max-width: 800px) {
    .quote-form-label {
        font-size: 17px;
    }

    .quote-result-table th,
    .quote-result-table td {
        font-size: 17px;
    }

    .quote-total #result-total {
        font-size: 30px;
    }

    .quote-form-title {
        padding-top: 5px !important;
    }

    .quote-form-container {
        padding: 20px;
    }

    .quote-total {
        padding: 8px 15px;
    }
}

@media (max-width: 600px) {

    .quote-result-title {
        margin-bottom: 5px !important;
    }

    .quote-result-note p:first-of-type {
        margin-bottom: 0 !important;
    }

    .quote-total #result-total {
        font-size: 24px;
    }

    .quote-total {
        font-size: 17px;
    }

    .quote-result-note {
        margin-top: 18px;
        font-size: 14px;
    }

    .quote-tax-note {
        font-size: 12px;
        margin-top: 5px;
    }

    .quote-result-table th,
    .quote-result-table td {
        font-size: 15px !important;
    }

    .quote-form-radio-group {
        display: block;
    }

    .quote-form-radio-option {
        display: block;
    }

    label.quote-form-label[for="product"] .quote-form-radio-option:first-of-type {
        margin-bottom: 5px;
    }

    .quote-form-radio-option {
        font-size: 16px;
    }
}

@media (max-width: 520px) {

    .quote-result-table th,
    .quote-result-table td {
        font-size: 14px !important;
        padding: 7px;
    }

    .quote-result-title {
        font-size: 17px !important;

    }
}

@media (max-width: 480px) {
    .quote-license-note {
        font-size: 14px;
    }

    .quote-contact-section {
        padding: 20px;
    }

    .quote-contact-text {
        font-size: 15px;
    }

    .quote-result-table {
        width: 100%;
        table-layout: fixed;
        /* ←これが重要 */
    }

    .quote-result-table th:nth-child(1),
    .quote-result-table td:nth-child(1) {
        width: 110px;
    }

    .quote-result-table th:nth-child(2),
    .quote-result-table td:nth-child(2) {
        width: 55px;
    }

    .quote-contact-button {
        margin-left: 0;
    }


    .quote-result-table th,
    .quote-result-table td {
        font-size: 15px;
    }

    .quote-form-title {
        font-size: 30px !important;
    }

    .quote-form-intro {
        font-size: 16px !important;
    }

    .quote-form-label {
        font-size: 16px;
    }

    .quote-form-container {
        padding: 0;
        border: none;
    }
}