/* ============================================  
   ROAS Calculator — Custom Styles  
   Simplicity and high contrast are key here.  
   Jodi tomar shared style.css er sathe kono conflict hoy,  
   duplicate hoy segulo remove koro.  
============================================ */

/* ── Page Container ── */  
.roas-page {  
    min-height: 100vh;  
    background-color: #f9fafb;  
}

.roas-container {  
    max-width: 840px;  
    margin: 0 auto;  
    padding: 0 16px 48px;  
}

@media (min-width: 640px) {  
    .roas-container {  
        padding: 0 24px 64px;  
    }  
}

/* ── Breadcrumb ── */  
.roas-breadcrumb ol {  
    list-style: none;  
    margin: 0;  
    padding: 0;  
    display: flex;  
    align-items: center;  
    gap: 8px;  
    font-size: 14px;  
    color: #6b7280;  
    flex-wrap: wrap;  
}

.roas-breadcrumb a {  
    color: #6b7280;  
    text-decoration: none;  
    transition: color 0.15s;  
}

.roas-breadcrumb a:hover {  
    color: #374151;  
}

.roas-breadcrumb li:last-child span {  
    color: #111827;  
    font-weight: 500;  
}

/* ── Hero section replaced by inline tool-hero styles ── */

/* ── Calculator Card ── */  
.roas-calc-section {  
    margin-bottom: 48px;  
}

@media (min-width: 640px) {  
    .roas-calc-section {  
        margin-bottom: 64px;  
    }  
}

.roas-calc-card {  
    background: #ffffff;  
    border: 1px solid #e5e7eb;  
    border-radius: 16px;  
    padding: 24px;  
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);  
}

@media (min-width: 640px) {  
    .roas-calc-card {  
        padding: 32px;  
    }  
}

.roas-calc-inputs {  
    display: grid;  
    grid-template-columns: 1fr;  
    gap: 20px;  
}

@media (min-width: 640px) {  
    .roas-calc-inputs {  
        grid-template-columns: 1fr 1fr;  
        gap: 24px;  
    }  
}

/* ── Input Group ── */  
.roas-input-group label {  
    display: block;  
    font-size: 14px;  
    font-weight: 600;  
    color: #374151;  
    margin-bottom: 8px;  
}

.roas-input-wrapper {  
    position: relative;  
}

.roas-input-prefix {  
    position: absolute;  
    left: 12px;  
    top: 50%;  
    transform: translateY(-50%);  
    font-size: 14px;  
    font-weight: 500;  
    color: #6b7280;  
    pointer-events: none;  
}

.roas-input-wrapper input {  
    width: 100%;  
    padding: 12px 16px 12px 32px;  
    border: 1px solid #d1d5db;  
    border-radius: 8px;  
    font-size: 16px;  
    color: #111827;  
    background: #ffffff;  
    transition: border-color 0.15s, box-shadow 0.15s;  
    box-sizing: border-box;  
    -webkit-appearance: none;  
    appearance: none;  
}

.roas-input-wrapper input::placeholder {  
    color: #9ca3af;  
}

.roas-input-wrapper input:focus {  
    outline: none;  
    border-color: #3b82f6;  
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);  
}

.roas-input-wrapper input[aria-invalid="true"] {  
    border-color: #f87171;  
}

.roas-input-wrapper input[aria-invalid="true"]:focus {  
    border-color: #ef4444;  
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);  
}

.roas-input-helper {  
    margin: 6px 0 0;  
    font-size: 12px;  
    color: #6b7280;  
}

.roas-input-error {  
    margin: 6px 0 0;  
    font-size: 12px;  
    color: #dc2626;  
    font-weight: 500;  
}

/* ── Calculate Button ── */  
.roas-calc-btn {  
    display: block;  
    width: 100%;  
    margin-top: 24px;  
    padding: 14px 24px;  
    background-color: #2563eb;  
    color: #ffffff;  
    font-size: 16px;  
    font-weight: 600;  
    border: none;  
    border-radius: 8px;  
    cursor: pointer;  
    transition: background-color 0.15s;  
    -webkit-appearance: none;  
    appearance: none;  
    min-height: 48px;  
}

.roas-calc-btn:hover {  
    background-color: #1d4ed8;  
}

.roas-calc-btn:active {  
    background-color: #1e40af;  
}

.roas-calc-btn:focus-visible {  
    outline: 2px solid #2563eb;  
    outline-offset: 2px;  
}

/* ── Results Card ── */  
.roas-results-card {  
    background: #ffffff;  
    border: 1px solid #e5e7eb;  
    border-radius: 16px;  
    padding: 24px;  
    margin-top: 24px;  
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);  
}

@media (min-width: 640px) {  
    .roas-results-card {  
        padding: 32px;  
    }  
}

.roas-results-card h3 {  
    font-size: 18px;  
    font-weight: 600;  
    color: #111827;  
    margin: 0 0 20px;  
}

.roas-results-grid {  
    display: grid;  
    grid-template-columns: 1fr;  
    gap: 12px;  
    margin-bottom: 20px;  
}

@media (min-width: 480px) {  
    .roas-results-grid {  
        grid-template-columns: 1fr 1fr 1fr;  
    }  
}

.roas-result-item {  
    background: #eff6ff;  
    border: 1px solid #bfdbfe;
    border-radius: 12px;  
    padding: 20px 16px;  
    text-align: center;  
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.05);
}

.roas-result-label {  
    display: block;  
    font-size: 13px;  
    color: #6b7280;  
    margin-bottom: 4px;  
}

.roas-result-value {  
    display: block;  
    font-size: 34px;  
    font-weight: 800;  
    color: #1d4ed8;  
    line-height: 1.2;  
}

/* ── Interpretation ── */  
.roas-interpretation {  
    border-radius: 12px;  
    padding: 16px;  
    margin-bottom: 0;  
}

.roas-interpretation.positive {  
    background: #f0fdf4;  
    border: 1px solid #bbf7d0;  
}

.roas-interpretation.positive p {  
    color: #15803d;  
    margin: 0;  
    font-size: 16px;  
    font-weight: 600;  
    line-height: 1.5;
    text-align: center;
}

.roas-interpretation.warning {  
    background: #fffbeb;  
    border: 1px solid #fde68a;  
}

.roas-interpretation.warning p {  
    color: #92400e;  
    margin: 0;  
    font-size: 16px;  
    font-weight: 600;  
    line-height: 1.5;
    text-align: center;
}

/* ── Results CTA link ── */  
.roas-results-cta {  
    margin-top: 20px;  
    padding-top: 20px;  
    border-top: 1px solid #f3f4f6;  
}

.roas-results-cta p {  
    margin: 0;  
    font-size: 14px;  
    color: #4b5563;  
}

.roas-results-cta a {  
    color: #2563eb;  
    font-weight: 500;  
    text-decoration: underline;  
    text-underline-offset: 2px;  
    transition: color 0.15s;  
}

.roas-results-cta a:hover {  
    color: #1d4ed8;  
}

/* ── Content Sections ── */  
.roas-content-section {  
    margin-bottom: 40px;  
}

@media (min-width: 640px) {  
    .roas-content-section {  
        margin-bottom: 48px;  
    }  
}

.roas-content-section h2 {  
    font-size: 24px;  
    font-weight: 700;  
    color: #111827;  
    margin: 0 0 16px;  
    line-height: 1.3;  
}

.roas-content-section h3 {  
    font-size: 20px;  
    font-weight: 600;  
    color: #111827;  
    margin: 24px 0 12px;  
    line-height: 1.3;  
}

.roas-content-section p {  
    font-size: 16px;  
    color: #374151;  
    line-height: 1.7;  
    margin: 0 0 12px;  
}

.roas-content-section p:last-child {  
    margin-bottom: 0;  
}

.roas-content-section a {  
    color: #2563eb;  
    font-weight: 500;  
    text-decoration: none;  
    transition: color 0.15s;  
}

.roas-content-section a:hover {  
    color: #1d4ed8;  
    text-decoration: underline;  
}

.roas-content-section em {  
    font-style: italic;  
}

.roas-content-section strong {  
    font-weight: 600;  
}

/* ── Formula Box ── */  
.roas-formula-box {  
    background: #f9fafb;  
    border: 1px solid #e5e7eb;  
    border-radius: 12px;  
    padding: 20px 24px;  
    margin: 16px 0;  
}

.roas-formula-line {  
    text-align: center;  
    margin-bottom: 8px;  
}

.roas-formula-line:last-child {  
    margin-bottom: 0;  
}

.roas-formula-line code {  
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;  
    font-size: 17px;  
    font-weight: 600;  
    color: #111827;  
}

@media (min-width: 640px) {  
    .roas-formula-line code {  
        font-size: 20px;  
    }  
}

.roas-formula-note {  
    font-size: 14px !important;  
    color: #6b7280 !important;  
    margin-top: 16px !important;  
}

/* ── Example Cards ── */  
.roas-example-card {  
    background: #ffffff;  
    border: 1px solid #e5e7eb;  
    border-radius: 12px;  
    padding: 20px 24px;  
    margin-bottom: 16px;  
}

.roas-example-card:last-child {  
    margin-bottom: 0;  
}

.roas-example-card h3 {  
    font-size: 17px;  
    font-weight: 600;  
    color: #111827;  
    margin: 0 0 12px;  
}

.roas-example-grid {  
    display: grid;  
    grid-template-columns: 1fr 1fr;  
    gap: 12px;  
}

@media (min-width: 640px) {  
    .roas-example-grid {  
        grid-template-columns: 1fr 1fr 1fr 1fr;  
    }  
}

.roas-example-label {  
    display: block;  
    font-size: 13px;  
    color: #6b7280;  
    margin-bottom: 2px;  
}

.roas-example-val {  
    display: block;  
    font-size: 15px;  
    font-weight: 600;  
    color: #111827;  
}

.roas-example-note {  
    margin: 12px 0 0 !important;  
    font-size: 14px !important;  
    color: #4b5563 !important;  
}

.roas-example-note a {  
    color: #2563eb;  
    font-weight: 500;  
}

/* ── Comparison Table ── */  
.roas-table-wrapper {  
    overflow-x: auto;  
    margin: 16px 0;  
    -webkit-overflow-scrolling: touch;  
}

.roas-comparison-table {  
    width: 100%;  
    border-collapse: separate;  
    border-spacing: 0;  
    border: 1px solid #e5e7eb;  
    border-radius: 12px;  
    overflow: hidden;  
    font-size: 14px;  
}

.roas-comparison-table th,  
.roas-comparison-table td {  
    padding: 12px 16px;  
    text-align: left;  
}

.roas-comparison-table thead tr {  
    background: #f9fafb;  
}

.roas-comparison-table th {  
    font-weight: 600;  
    color: #374151;  
    border-bottom: 1px solid #e5e7eb;  
}

.roas-comparison-table td {  
    color: #4b5563;  
    border-bottom: 1px solid #f3f4f6;  
}

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

.roas-comparison-table td:first-child {  
    font-weight: 500;  
    color: #374151;  
}

/* ── FAQ ── */  
.roas-faq-list {  
    display: flex;  
    flex-direction: column;  
    gap: 12px;  
}

.roas-faq-item {  
    background: #ffffff;  
    border: 1px solid #e5e7eb;  
    border-radius: 12px;  
    overflow: hidden;  
}

.roas-faq-item summary {  
    display: flex;  
    align-items: center;  
    justify-content: space-between;  
    padding: 16px 20px;  
    font-size: 15px;  
    font-weight: 600;  
    color: #111827;  
    cursor: pointer;  
    list-style: none;  
    transition: background-color 0.15s;  
    min-height: 48px;  
}

/* Remove default marker */  
.roas-faq-item summary::-webkit-details-marker {  
    display: none;  
}

.roas-faq-item summary::marker {  
    display: none;  
    content: '';  
}

.roas-faq-item summary:hover {  
    background: #f9fafb;  
}

.roas-faq-item summary:focus-visible {  
    outline: 2px solid #2563eb;  
    outline-offset: -2px;  
}

/* Chevron arrow */  
.roas-faq-item summary::after {  
    content: '';  
    flex-shrink: 0;  
    width: 20px;  
    height: 20px;  
    margin-left: 16px;  
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");  
    background-repeat: no-repeat;  
    background-position: center;  
    transition: transform 0.2s;  
}

.roas-faq-item[open] summary::after {  
    transform: rotate(180deg);  
}

.roas-faq-answer {  
    padding: 0 20px 16px;  
}

.roas-faq-answer p {  
    margin: 0;  
    font-size: 14px;  
    color: #4b5563;  
    line-height: 1.6;  
}

/* ── Related Tools Grid ── */  
.roas-related-grid {  
    display: grid;  
    grid-template-columns: 1fr;  
    gap: 16px;  
}

@media (min-width: 640px) {  
    .roas-related-grid {  
        grid-template-columns: 1fr 1fr;  
    }  
}

@media (min-width: 900px) {  
    .roas-related-grid {  
        grid-template-columns: 1fr 1fr 1fr;  
    }  
}

.roas-related-card {  
    display: block;  
    background: #ffffff;  
    border: 1px solid #e5e7eb;  
    border-radius: 12px;  
    padding: 20px;  
    text-decoration: none;  
    transition: box-shadow 0.15s, border-color 0.15s;  
}

.roas-related-card:hover {  
    border-color: #d1d5db;  
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);  
}

.roas-related-card:focus-visible {  
    outline: 2px solid #2563eb;  
    outline-offset: 2px;  
}

.roas-related-card h3 {  
    font-size: 16px;  
    font-weight: 600;  
    color: #111827;  
    margin: 0 0 6px;  
    transition: color 0.15s;  
}

.roas-related-card:hover h3 {  
    color: #2563eb;  
}

.roas-related-card p {  
    font-size: 14px;  
    color: #6b7280;  
    margin: 0;  
    line-height: 1.5;  
}

/* ── Service CTA ── */  
.roas-service-cta {  
    background: #f9fafb;  
    border: 1px solid #e5e7eb;  
    border-radius: 12px;  
    padding: 24px;  
    text-align: center;  
    margin-top: 8px;  
}

@media (min-width: 640px) {  
    .roas-service-cta {  
        padding: 32px;  
    }  
}

.roas-service-cta-title {  
    font-size: 18px;  
    font-weight: 600;  
    color: #111827;  
    margin: 0 0 8px;  
}

.roas-service-cta-text {  
    font-size: 14px;  
    color: #4b5563;  
    margin: 0 0 16px;  
    max-width: 480px;  
    margin-left: auto;  
    margin-right: auto;  
    line-height: 1.5;  
}

.roas-service-cta-link {  
    display: inline-flex;  
    align-items: center;  
    gap: 6px;  
    font-size: 14px;  
    font-weight: 600;  
    color: #2563eb;  
    text-decoration: none;  
    transition: color 0.15s;  
}

.roas-service-cta-link:hover {  
    color: #1d4ed8;  
}

.roas-service-cta-link:focus-visible {  
    outline: 2px solid #2563eb;  
    outline-offset: 2px;  
    border-radius: 4px;  
}

/* ── General reset for this page ── */  
.roas-page *,  
.roas-page *::before,  
.roas-page *::after {  
    box-sizing: border-box;  
}
