/**
 * ACS Pricing Calculator - Frontend Styles
 */

.acs-pricing-calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
    /* padding: 20px; */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Form Styles */
.acs-pricing-form-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.acs-pricing-calculator-wrapper .acs-pricing-form-title {
    font-size: 32px !important;
    font-weight: bold;
    margin-bottom: 30px;
    color: #000;
}

.acs-pricing-calculator-wrapper .acs-pricing-form-title em {
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 75% !important;
}

.acs-form-field {
    margin-bottom: 25px;
}

.acs-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #000;
}

.acs-checkmark {
    color: #0066cc;
    font-weight: bold;
    font-size: 18px;
}

.acs-info-icon {
    position: relative;
    display: inline-block;
    cursor: help;
    vertical-align: middle;
    margin-left: 4px;
}

.acs-info-icon img {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    display: block;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.acs-info-icon:hover img {
    opacity: 1;
}

/* Instant tooltip (no delay) - native browser style */
.acs-info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0s, visibility 0s;
    visibility: hidden;
    z-index: 1000;
    box-shadow: none;
    border: none;
    border-radius: 0;
    line-height: 1.2;
}

.acs-info-icon:hover::after {
    opacity: 1;
    visibility: visible;
    transition: opacity 0s;
}

.acs-field-input-wrapper {
    position: relative;
}

.acs-typeahead-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.acs-typeahead-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.acs-typeahead-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.acs-typeahead-results.active {
    display: block;
}

.acs-typeahead-result-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.acs-typeahead-result-item:hover {
    background-color: #f5f5f5;
}

.acs-typeahead-result-item:last-child {
    border-bottom: none;
}

.acs-typeahead-result-item strong {
    color: #000;
    display: block;
    margin-bottom: 4px;
}

.acs-typeahead-result-item small {
    color: #666;
    font-size: 12px;
}

.acs-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.acs-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.acs-radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.acs-help-note {
    margin: 30px 0;
    padding: 15px;
    background-color: #f9f9f9;
    font-size: 14px;
    color: #666;
}
.acs-help-note p {
    margin: 0; font-size: 14px;
}

.acs-ux-note {
    font-size: 12px;
    margin-top: 5px;
    color: #666;
}

/* Buttons */
.acs-form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.acs-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

a.acs-btn {
    display: inline-block;
    text-decoration: none;
}

.acs-btn-outline {
    background: #fff;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.acs-btn-outline:hover {
    background: #f0f7ff;
}

.acs-btn-primary {
    background: #0066cc;
    color: #fff;
}

.acs-btn-primary:hover {
    background: #0052a3;
}

/* Results Styles */
.acs-pricing-results-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.acs-pricing-results-title {
    font-size: 32px !important;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000;
}

.acs-pricing-intro {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.acs-special-conditions {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.acs-special-conditions h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

ul.acs-conditions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.acs-conditions-list li {
    padding: 5px 0;
    color: #333;
}

.acs-pricing-options {
    margin: 25px 0;
}

.acs-pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.acs-pricing-table thead {
    background-color: #f5f5f5;
}

.acs-pricing-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #000000;
}

.acs-pricing-table td {
    padding: 15px 12px;
    border: 1px solid #000;
}


/* Subheader rows */
.acs-subheader-row td {
    background-color: transparent !important;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #000;
}

.acs-final-published-header td {
    background-color: #FEEEBF !important;
}

.acs-accepted-manuscript-header td {
    background-color: #D8E7BC !important;
}

/* Background colors for rows */
.acs-final-published-row td {
    background-color: #FEEEBF;
}

.acs-accepted-manuscript-row td {
    background-color: #D8E7BC;
}

.acs-option-type {
    font-weight: 500;
}

.acs-option-details {
    color: #666;
}

.acs-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: #e8f4f8;
    color: #0066cc;
    border-radius: 3px;
    font-size: 12px;
    margin-top: 4px;
}

.acs-upgrade-note {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
    font-style: italic;
}

.acs-option-price {
    font-weight: bold;
    font-size: 18px;
    color: #000;
}

.acs-waiver-info {
    padding: 15px;
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    margin: 20px 0;
}

.acs-waiver-info p {
    margin: 0;
}

.acs-embargo-message {
    margin: 20px 0;
    padding: 15px;
    background-color: #ffe1d4;
    border: 1px solid #ffa507;
    border-radius: 4px;
    font-size: 14px;
}

.acs-embargo-message p {
    margin: 0;    color: #352a0c;
    font-size: 14px;
}

.acs-upgrade-info {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin: 20px 0;
}

.acs-upgrade-info p {
    margin: 0;
}

.acs-subscriber-discount-note {
    margin: 20px 0 0 0;
    padding: 15px;
    background-color: #f0f7ff;
    border-radius: 4px;
    font-size: 14px;
}

.acs-subscriber-discount-note p {
    margin: 0;
    font-size: 14px;
}

.acs-disclaimer {
    margin: 25px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.acs-disclaimer p {
    margin: 0; font-size: 14px;
}
.acs-results-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .acs-pricing-calculator-wrapper {
        padding: 10px;
    }
    
    .acs-pricing-form-container,
    .acs-pricing-results-container {
        padding: 20px;
    }
    
    .acs-form-buttons,
    .acs-results-buttons {
        flex-direction: column;
    }
    
    .acs-btn {
        width: 100%;
    }
}

p.acs-ux-note {
    background-color: #fff4c0;
    padding: 10px;
    font-size: 14px;
    color: #444;
    border: 1px solid #f1e192;
    border-radius: 5px;
}
.acs-discount-notes small {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.75;
}