/* Estimate Page Styles */
:root {
    --estimate-accent: #66CCB3;
    --estimate-panel-bg: #F0F0F0;
    --estimate-text: #333333;
    --estimate-total-bg: #ff6b35;
    --estimate-white: #FFFFFF;
    --estimate-border: #E0E0E0;
}

/* Estimate specific styles - override body padding to account for header */
body {
    padding-top: 0;
}

#estimate-app {
    max-width: 1400px;
    margin: 100px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
    min-height: calc(100vh - 200px); /* Ensure content takes up space */
}

/* Left Panel - Input Form */
.estimate-form-panel {
    background: var(--estimate-panel-bg);
    border-radius: 12px;
    padding: 40px;
}

.estimate-form-panel h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--estimate-text);
}

.estimate-form-panel h5 {
    margin: 0 0 30px 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--estimate-text);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--estimate-text);
}

.input-field {
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--estimate-accent);
    color: var(--estimate-white);
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.input-group input[type="number"] {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--estimate-border);
    border-radius: 8px;
    background: var(--estimate-white);
    color: var(--estimate-text);
    outline: none;
    transition: border-color 0.3s;
}

.input-group input[type="number"]:focus {
    border-color: var(--estimate-accent);
}

.input-group input[type="number"]:disabled {
    background: #E8E8E8;
    cursor: not-allowed;
}


.hint-box {
    padding: 10px 14px;
    margin: 0 0 12px;
    background-color: #e8f7f3;
    border-left: 3px solid var(--estimate-accent);
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.hint-box a {
    color: #2a8a73;
    text-decoration: underline;
}

.hint-box--button {
    margin: 10px 0 0;
    border-left-color: #aaa;
    background-color: #f5f5f5;
}

.alert-box {
    padding: 12px 16px;
    margin: 20px 0;
    border: 1px solid #f5c06d;
    background-color: #ffeeba;
    color: #856404;
    border-radius: 8px;
    font-size: 14px;
}
.alert-box a {
    color: #856404;
    text-decoration: none;
    display: flex;
    gap:5px;
    align-items: center;
}
.alert-box a i {
    font-size: 12px;
}

.calculate-button {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: var(--estimate-white);
    background: var(--estimate-accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.calculate-button:hover:not(:disabled) {
    background: #5AB8A0;
    transform: translateY(-2px);
}

.calculate-button:disabled {
    background: #B0B0B0;
    cursor: not-allowed;
    transform: none;
}

/* Right Panel - Results */
.results-panel {
    background: var(--estimate-panel-bg);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.results-panel h4 {
    margin: 0 0 25px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--estimate-text);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--estimate-white);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.results-table th {
    text-align: left;
    font-size: 16px;
    padding: 15px;
    font-weight: 600;
    color: var(--estimate-text);
    background: var(--estimate-white);
    border-bottom: 1px solid var(--estimate-border);
    border-right: 1px solid var(--estimate-border);
}

.results-table td {
    padding: 15px;
    text-align: start;
    font-size: 15px;
    color: var(--estimate-text);
    border-bottom: 1px solid var(--estimate-border);
    border-right: 1px solid var(--estimate-border);
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table th:last-child,
.results-table td:last-child {
    border-right: none;
    text-align: right;
}

.results-table tr:last-child td:last-child {
    font-weight: 600;
}

.total-amount-box {
    background: var(--estimate-total-bg);
    color: var(--estimate-white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
}

.total-amount-box .label {
    font-size: 18px;
    font-weight: 600;
}

.total-amount-box .amount {
    font-size: 20px;
    font-weight: 700;
}

.disclaimer {
    border-left: 3px solid var(--estimate-accent);
    padding: 10px 14px;
    margin-bottom: 20px;
    text-align: left;
}

.disclaimer ul {
    margin: 0;
    padding: 0 0 0 16px;
}

.disclaimer li {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

.print-button {
    width: 100%;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: var(--estimate-white);
    background: var(--estimate-accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.print-button:hover {
    background: #5AB8A0;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    #estimate-app {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        margin-top: 70px;
    }
}

@media (max-width: 768px) {
    #estimate-app {
        margin-top: 70px;
        padding: 20px;
    }

    .estimate-form-panel,
    .results-panel {
        padding: 25px;
    }

    .estimate-form-panel h3 {
        font-size: 20px;
    }

    .input-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

.print-header {
    display: none;
}

@media print {
    .header,
    .footer,
    .estimate-form-panel,
    .calculate-button,
    .print-button {
        display: none !important;
    }

    #estimate-app {
        display: block;
        margin: 0;
        padding: 40px 50px;
        max-width: none;
    }

    /* Logo + date header */
    .print-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .print-header-logo {
        height: 48px;
        width: auto;
        object-fit: contain;
        display: block;
    }

    .print-header-date {
        font-size: 13px;
        color: #555;
        padding-top: 4px;
    }

    /* Results panel */
    .results-panel {
        background: none;
        padding: 0;
        text-align: left;
    }

    .results-panel h4 {
        font-size: 0;
        text-align: center;
        padding: 16px 0;
        margin-bottom: 24px;
        border-top: 2px solid #333;
        border-bottom: 2px solid #333;
    }

    .results-panel h4::after {
        content: "Backlog助っ人サービス概算お見積もり";
        font-size: 20px;
        font-weight: 700;
    }

    /* Table */
    .results-table {
        background: none;
        border-radius: 0;
    }

    .results-table th {
        border-right: none;
        border-bottom: 2px solid #333;
        border-top: 2px solid #333;
        background: none;
    }

    .results-table td {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .results-table tr:last-child td {
        border-top: 2px solid #333;
        border-bottom: 2px solid #333;
    }

    .total-amount-box {
        display: none;
    }

    /* Disclaimer */
    .disclaimer {
        border-left-color: #aaa;
        margin-bottom: 0;
    }

    .disclaimer li {
        font-size: 11px;
    }
}

