/* Imported Fonts */
/* You would typically link these in your HTML head or use @import if they are web fonts */
/* For this example, I'll add basic @font-face rules if you plan to host the fonts locally */
/* Assuming you have fonts in a /fonts directory relative to your CSS */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: url("/fonts/OpenSans-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  src: url("/fonts/OpenSans-Semibold.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 300;
  src: url("/fonts/Raleway-Light.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  src: url("/fonts/Raleway-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 500;
  src: url("/fonts/Raleway-Medium.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 600;
  src: url("/fonts/Raleway-SemiBold.ttf") format("truetype");
  font-display: swap;
}


body {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #fcfcfc;
    color: #666;
    line-height: 25px;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    background-color: #ffffff;
    padding: 25px 35px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- Header Logo and Title Styling --- */
.page-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.header-logo {
    height: 60px;
    width: auto;
}

.page-header-custom h1 {
    font-family: "Raleway", sans-serif;
    margin-bottom: 0;
    text-align: right;
    color: #3599db;
    font-size: 1.8em;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* --- Main Layout for side-by-side sections (Calculator Inputs/Summary) --- */
.main-layout {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.input-section {
    flex: 1;
    min-width: 320px;
}

.summary-section {
    flex: 1.2;
    min-width: 320px;
}
/* --------------------------------------------- */


h2 {
    font-family: "Raleway", sans-serif;
    color: #444;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5em;
    font-weight: 400;
}

h3 {
    font-family: "Raleway", sans-serif;
    color: #444;
    margin: 0;
    font-size: 1.5em;
    font-weight: 500;
}

h4 {
    font-family: "Raleway", sans-serif;
    color: #555;
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}


/* --- Input Grid Styling --- */
.input-grid {
    display: grid;
    grid-template-columns: minmax(180px, auto) 1fr;
    gap: 15px 20px;
    align-items: center;
}

.input-grid label {
    font-weight: 500;
    color: #757575;
    text-align: left;
    padding-right: 10px;
}

/* MODIFIED */
.quantity-input {
    width: 120px; /* Keep fixed width */
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    text-align: right; /* Keep text inside input right-aligned */
    outline-color: #3599db;
    /* ADDED: Align the input box to the right within its grid cell */
    justify-self: end;
    background-color: rgba(255, 214, 0, 0.25);
}
.quantity-input:focus {
    border-color: #3599db;
    box-shadow: 0 0 0 0.2rem rgba(53, 153, 219, 0.25);
    outline: none;
}

/* MODIFIED */
.calculated-value {
    font-weight: 600;
    padding: 10px 0;
    color: #212529;
    min-height: 42px;
    display: flex; /* It was already flex */
    align-items: center;
    /* REMOVED: padding-left: 85px; */ /* Remove this to allow right alignment */
    /* ADDED: Align the span container to the right within its grid cell */
    justify-self: end;
    /* ADDED: Align the text content to the right within the flex container */
    justify-content: flex-end;
     /* ADDED: Optional padding on the right for visual spacing */
    padding-right: 12px;
}

/* --- Summary Section Styling --- */
.summary-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 18px;
    align-items: start;
}
.summary-grid > div {
    padding: 6px 0;
}

.summary-label {
    font-weight: 600;
    color: #212529;
    text-align: left;
    padding-right: 15px;
}

.summary-value {
    font-weight: 700;
    font-size: 1.1em;
    color: #198754;
    text-align: right;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    padding-right: 12px;
    display: block;
}

.summary-details {
    font-size: 0.9em;
    color: #6c757d;
    grid-column: 2;
    margin-top: -5px;
    padding-left: 0;
    text-align: right;
    padding-right: 12px;
}

.summary-breakdown {
    grid-column: 1 / -1;
    font-size: 0.88em;
    color: #495057;
    background-color: #f8f9fa;
    padding: 10px 15px !important;
    border-radius: 4px;
    margin-top: 0px;
    border: 1px solid #e9ecef;
    display: block;
}
.summary-breakdown .tier-detail {
    margin-bottom: 3px;
}
.summary-breakdown .tier-detail:last-child {
    margin-bottom: 0;
}

.grand-total-label {
    font-size: 1.25em;
    color: #3599db;
    padding-top: 18px;
    border-top: 2px solid #dee2e6;
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.grand-total-value {
    font-size: 1.35em;
    color: #3599db;
    padding-top: 18px;
    border-top: 2px solid #dee2e6;
    margin-top: 10px;
    text-align: right;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    padding-right: 12px;
    display: block;
}

/* Responsive adjustments for main layout */
@media (max-width: 991px) {
    .main-layout {
        flex-direction: column;
        gap: 30px;
    }
    .input-section, .summary-section {
        flex-basis: auto;
        width: 100%;
    }
    .container {
        max-width: 750px;
    }
}


/* Responsive adjustments for smaller form elements */
@media (max-width: 650px) {
    .container {
        padding: 20px;
    }
    h1 { font-size: 1.5em; }
    h2 { font-size: 1.2em; }

    /* MODIFIED */
    .input-grid, .summary-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 10px;
    }
    .input-grid label, .summary-label {
        text-align: left; /* Align labels left */
        padding-right: 0;
        margin-bottom: 3px;
    }
    .quantity-input {
        width: 100%; /* Full width input */
        /* ADDED: Align input box left when stacked */
        justify-self: start;
    }
     .calculated-value {
         padding-left: 0;
         /* ADDED: Align span container left when stacked */
         justify-self: start;
         /* ADDED: Align text content left within the span */
         justify-content: flex-start;
         /* ADDED: Remove right padding on mobile */
         padding-right: 0;
     }
    .summary-details, .summary-breakdown {
        grid-column: 1;
        margin-top: 5px;
    }
    .summary-value {
        padding-right: 0;
    }
     .grand-total-label, .grand-total-value {
         text-align: left;
         padding-right: 0;
     }
}


/* --- Static Pricing Tiers Section --- */
.static-pricing-tiers-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.static-tiers-main-title {
    font-family: "Raleway", sans-serif;
    text-align: center;
    color: #444;
    margin-bottom: 40px;
    font-size: 1.8em;
    font-weight: 500;
}

.pass-volume-main-title {
    font-family: "Raleway", sans-serif;
    text-align: center;
    color: #444;
    margin-top: 40px;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 500;
}


/* --- Styling for individual Fee Blocks (Platform, Multi-Use, Single-Use) --- */
.fee-block {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.fee-block:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.1); /* Increase shadow */
    border-color: #d0d0d0; /* Subtle border change */
}

.fee-block-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.fee-block-header .fee-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 15px;
}
.fee-block-header .fee-icon svg {
    width: 30px;
    height: 30px;
    fill: #3599db;
}


/* Style for img elements inside the fee icon *span* container (Multi-Use, Single-Use) */
.fee-block-header .fee-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* ADDED: Style for img elements directly inside the fee block header (Platform Fee) */
.fee-block-header > img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 15px; /* Add the same margin as the fee-icon span */
}


/* H3 inside fee-block-header is styled by general h3 rule above */


/* --- Flexbox Layout for Description and Table within a block --- */
.fee-block-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.description {
    flex: 1;
    min-width: 300px;
}

/* Style for the first paragraph ONLY within .description */
.description p:first-child {
    margin-top: 0;
}

.description p {
    font-size: 1em;
    line-height: 25px;
    color: #666;
    margin-bottom: 20px;
    margin-left: 0;
}

.description ul {
    margin: 0 0 20px 20px;
    padding: 0;
    list-style-type: disc;
    color: #666;
}
.description li {
    margin-bottom: 8px;
    line-height: 25px;
}

.description .info-examples {
    font-size: 0.95em;
    color: #3599db;
    margin-bottom: 20px;
    margin-left: 0;
    font-style: italic;
    /* Removed the specific negative margin for alignment, relying on standard flow */
    margin-top: 0;
}
/* Adjusted the alignment slightly based on standard margins */
.multi-use-pass-fee .description .info-examples,
.single-use-pass-fee .description .info-examples {
    margin-top: 4px;
}


.description .info-examples .example-label {
    font-weight: bold;
    color: #333;
    font-style: normal;
}

.description a {
    color: #3599db;
    text-decoration: underline;
}
.description a:hover {
    color: #3599db;
    text-decoration: none;
}


.price-table-wrapper {
    flex: 1;
    min-width: 400px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Styles for the table itself */
table.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

table.pricing-table th,
table.pricing-table td {
    border: 1px solid #dee2e6;
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

table.pricing-table thead th {
    background-color: #0091ea;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    padding: 8px 12px;
}

table.pricing-table thead .num-sub-header,
table.pricing-table thead .rate-header {
    font-weight: normal;
    font-size: 0.9em;
    background-color: #f8f8f8;
    color: #333;
}


table.pricing-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
table.pricing-table tbody tr:hover {
    background-color: #e9ecef;
}

table.pricing-table td {
     color: #495057;
}


table.pricing-table td.num {
    text-align: right;
}
table.pricing-table td.currency {
    text-align: right;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}


/* Responsive adjustment for the fee block layout */
@media (max-width: 1199px) {
     .fee-block-content {
         flex-direction: column;
     }
     .description,
     .price-table-wrapper {
         flex-basis: auto;
         width: 100%;
         min-width: unset;
     }
     .price-table-wrapper table.pricing-table {
         min-width: 500px;
     }
}


/* --- Styling for Definition Blocks (Invoice, Video) --- */
.definition-blocks {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.definition-blocks .definition-title {
    font-family: "Raleway", sans-serif;
    color: #444;
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 0;
}

.definition-blocks p {
    font-size: 1em;
    line-height: 25px;
    color: #666;
    margin-bottom: 20px;
    margin-left: 0;
}

.definition-blocks a {
     color: #3599db;
     text-decoration: underline;
}
.definition-blocks a:hover {
     color: #3599db;
     text-decoration: none;
}