.ctc-modern-ui {
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
    background: transparent;
    padding: 0;
}

.ctc-calc-header {
    margin-bottom: 25px;
}

.ctc-calc-header h3 {
    margin: 0 0 5px 0;
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 700;
}

.ctc-calc-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.ctc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.ctc-col {
    flex: 1;
    min-width: 250px;
}

.ctc-form-group {
    margin-bottom: 20px;
}

.ctc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Wrapper to enforce border-radius even if gmp overrides */
.ctc-gmp-wrapper {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
    background: #fff;
    transition: border-color 0.2s;
}

.ctc-gmp-wrapper:focus-within {
    border-color: #ff6b35; /* Orange brand color based on the screenshot button */
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.ctc-checkbox-group label {
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    background: #f9f9f9;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.ctc-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff6b35;
}

#ctc-calculate-btn {
    width: 100%;
    padding: 16px;
    background-color: #ff6b35; /* Orange main button */
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#ctc-calculate-btn:hover {
    background-color: #e85a28;
}

#ctc-calculate-btn:active {
    transform: scale(0.98);
}

#ctc-calculate-btn:disabled {
    background-color: #ffb59a;
    cursor: not-allowed;
}

.ctc-arrow {
    font-size: 20px;
    line-height: 1;
}

.ctc-btn-subtext {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

#ctc-spinner {
    text-align: center;
    color: #666;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.ctc-loader {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #ff6b35;
    border-radius: 50%;
    animation: ctc-spin 1s linear infinite;
}

@keyframes ctc-spin {
    to { transform: rotate(360deg); }
}

#ctc-error-container {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 20px;
    border-left: 4px solid #ef4444;
}

#ctc-result-container {
    margin-top: 30px;
    animation: ctc-fadein 0.4s ease;
}

@keyframes ctc-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ctc-result-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.ctc-result-box h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #111;
    text-align: center;
}

.ctc-price-highlight {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ctc-total-amount {
    font-size: 42px;
    font-weight: 800;
    color: #ff6b35;
    display: block;
    line-height: 1;
}

.ctc-iva-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    display: block;
    margin-top: 5px;
}

.ctc-breakdown-details {
    background: #f8fafc;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 25px;
}

.ctc-breakdown-details h5 {
    margin: 0 0 10px 0;
    font-size: 13px;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

.ctc-breakdown-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ctc-breakdown-details li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
    color: #334155;
}

.ctc-breakdown-details li:last-child {
    border-bottom: none;
}

.ctc-b-label {
    color: #64748b;
}

.ctc-cta-next {
    text-align: center;
}

.ctc-cta-next p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #555;
}

/* Reusing the theme's default button style logic here for standalone use */
.ctc-cta-next .ch-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.ctc-cta-next .ch-btn:hover {
    background: #1e293b;
}
