/* ─── Registration Cost Calculator (rcc-) ─── */

/* Utility */
.rcc-hidden {
    display: none !important;
}

/* Main Layout */
.rcc-main-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    align-items: start;
}

.rcc-input-col {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rcc-result-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Section Card */
.rcc-section {
    background: #ffffff;
    border: 1px solid #e8e4df;
    border-radius: 12px;
    padding: 24px;
}

.rcc-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 20px;
}

.rcc-section-title i {
    color: #d4af37;
    font-size: 18px;
}

/* Input Group */
.rcc-input-group {
    margin-bottom: 16px;
}

.rcc-input-group:last-child {
    margin-bottom: 0;
}

.rcc-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

/* Select */
.rcc-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
}

.rcc-select:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Amount Input */
.rcc-amount-input-wrap {
    position: relative;
}

.rcc-amount-input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-width: 100%;
    box-sizing: border-box;
}

.rcc-amount-input:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.rcc-amount-input::placeholder {
    color: #c4c0bc;
}

.rcc-amount-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #999;
    pointer-events: none;
}

.rcc-korean-amount {
    font-size: 12px;
    color: #d4af37;
    margin-top: 4px;
    min-height: 18px;
}

/* Checkbox */
.rcc-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.rcc-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d4af37;
    cursor: pointer;
}

.rcc-checkbox-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

/* Range Slider */
.rcc-slider-group {
    margin-top: 4px;
}

.rcc-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.rcc-slider-value {
    font-size: 14px;
    font-weight: 700;
    color: #d4af37;
}

.rcc-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e8e4df;
    border-radius: 3px;
    outline: none;
}

.rcc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #d4af37;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.rcc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #d4af37;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.rcc-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* Buttons */
.rcc-btn-group {
    display: flex;
    gap: 10px;
}

.rcc-btn-calculate {
    flex: 1;
    padding: 12px 0;
    background: linear-gradient(135deg, #d4af37, #c4a030);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.rcc-btn-calculate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.rcc-btn-calculate:active {
    transform: translateY(0);
}

.rcc-btn-reset {
    padding: 12px 20px;
    background: #f5f3ef;
    color: #666;
    border: 1px solid #e0dcd7;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.rcc-btn-reset:hover {
    background: #ebe8e3;
}

/* Waiting Section */
.rcc-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.rcc-waiting-icon {
    font-size: 48px;
    color: #d4af37;
    opacity: 0.4;
    margin-bottom: 16px;
}

.rcc-waiting-text {
    font-size: 15px;
    color: #999;
    line-height: 1.6;
}

/* Summary Card */
.rcc-summary {
    background: linear-gradient(135deg, #faf8f3, #f5f0e6);
    border: 1px solid #e8e0ce;
    border-radius: 12px;
    padding: 28px;
}

.rcc-summary-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.rcc-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0dace;
}

.rcc-summary-total-label {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.rcc-summary-total-value {
    font-size: 28px;
    font-weight: 800;
    color: #d4af37;
}

.rcc-summary-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rcc-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rcc-summary-item-label {
    font-size: 13px;
    color: #666;
}

.rcc-summary-item-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Detail Table */
.rcc-detail {
    background: #fff;
    border: 1px solid #e8e4df;
    border-radius: 12px;
    padding: 24px;
}

.rcc-detail-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rcc-detail-title i {
    color: #d4af37;
}

.rcc-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.rcc-detail-table th,
.rcc-detail-table td {
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid #f0ede8;
}

.rcc-detail-table th {
    background: #faf8f5;
    font-weight: 600;
    color: #555;
}

.rcc-detail-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #333;
}

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

.rcc-detail-table .rcc-total-row td {
    background: #faf8f3;
    font-weight: 700;
    color: #d4af37;
    font-size: 14px;
    border-top: 2px solid #e8e0ce;
}

/* Chart Section */
.rcc-chart-section {
    background: #fff;
    border: 1px solid #e8e4df;
    border-radius: 12px;
    padding: 24px;
}

.rcc-chart-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rcc-chart-title i {
    color: #d4af37;
}

.rcc-chart-wrap {
    position: relative;
    width: 100%;
    max-width: 240px;
    margin: 0 auto 20px;
}

.rcc-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rcc-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.rcc-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.rcc-legend-label {
    flex: 1;
    color: #666;
}

.rcc-legend-value {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* Info Section */
.rcc-info {
    background: #fff;
    border: 1px solid #e8e4df;
    border-radius: 12px;
    padding: 24px;
}

.rcc-info-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rcc-info-title i {
    color: #d4af37;
}

.rcc-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rcc-info-item {
    display: flex;
    gap: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.rcc-info-item i {
    color: #d4af37;
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Disclaimer */
.rcc-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 18px;
    background: #faf8f5;
    border: 1px solid #e8e4df;
    border-radius: 8px;
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

.rcc-disclaimer i {
    color: #ccc;
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Download Button */
.rcc-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #f5f3ef;
    border: 1px solid #e0dcd7;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: background 0.15s;
    align-self: flex-start;
}

.rcc-download-btn:hover {
    background: #ebe8e3;
}

.rcc-download-btn i {
    font-size: 14px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .rcc-main-layout {
        grid-template-columns: 1fr;
    }
    .rcc-input-col {
        position: static;
    }
}

@media (max-width: 480px) {
    .rcc-section {
        padding: 18px;
    }
    .rcc-summary {
        padding: 20px;
    }
    .rcc-summary-total-value {
        font-size: 22px;
    }
    .rcc-btn-group {
        flex-direction: column;
    }
    .rcc-btn-reset {
        text-align: center;
    }
}

/* Excel button guard */
.tool-btn-excel {
  background: #59ab79;
  border-color: #59ab79;
}

.tool-btn-excel:hover,
.tool-btn-excel:focus-visible {
  background: #4f9f70;
  border-color: #4f9f70;
}

