:root {
    --primary-color: #FFFFFF; /* White */
    --secondary-color: #00449E; /* Primary Blue */
    --accent-color: #D72828; /* Alert Red */
    --background-color: #F5F8FA; /* Light Blue-Gray */
    --text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    --box-shadow: 0 2px 8px rgba(0,68,158,0.15);
    
    /* New gradient variables */
    --gradient-blue: linear-gradient(135deg, #00449E 0%, #002D66 100%);
    --gradient-red: linear-gradient(135deg, #D72828 0%, #A61E1E 100%);
    
    /* Typography */
    --font-bold: 600;
    --font-extra-bold: 800;
    --font-family: 'Graphik', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Styles from exposure.html */
.details, .locations, .confirmation, .summary {
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: var(--secondary-color);
    color: white;
}

.checkbox {
    text-align: center;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.summary p {
    font-weight: bold;
}
/* End styles from exposure.html */

/* Styles from fts.html */
.option-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.option {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 20px 15px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}

.option h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: var(--text-shadow);
}

.tooltip {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--highlight-color);
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    width: auto;
    max-width: 250px;
    text-shadow: var(--text-shadow);
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.option:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: 100%;
}
/* End styles from fts.html */

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: #222222; /* Dark text for contrast */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Button styles */
button, .button {
    background: var(--gradient-blue);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,68,158,0.2);
}

button:active, .button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,68,158,0.2);
}

/* Status page specific buttons */
.toggle-reveal, .reveal button {
    background-color: #D72828;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 4px 0;
}

.toggle-reveal:hover, .reveal button:hover {
    background-color: #00449E;
}

/* Alert/Error buttons */
button.alert, .button.alert {
    background: var(--gradient-red);
}

/* Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: var(--font-bold);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

header {
    background: var(--gradient-blue);
    color: var(--primary-color);
    padding: 20px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header h1 {
    font-weight: var(--font-extra-bold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0;
    font-size: 1.8rem;
}

header img {
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
    margin-right: 15px;
    background: linear-gradient(135deg, #00449E, #002D66);
    padding: 5px;
    border-radius: 8px;
    object-fit: contain;
}

header img {
    height: 66px; /* Reduced height */
}

header h1 {
    margin: 0;
    font-size: 1.5rem; /* Reduced font size */
    font-weight: 600;
}

nav {
    display: flex;
    justify-content: center;
    background-color: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 80px;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 20px;
    font-size: 1.1rem;
    font-weight: var(--font-bold);
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

nav a:hover {
    background: rgba(0,68,158,0.1);
    color: var(--secondary-color);
    text-decoration: none;
}

nav a.active {
    background: var(--secondary-color);
    color: var(--primary-color);
}

main {
    padding: 20px; /* Reduced padding */
    max-width: 800px; /* Adjusted max-width */
    margin: 20px auto;
    background: var(--primary-color);
    border-radius: 8px;
    flex: 1;
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 20px; /* Reduced margin */
    font-size: 1.8rem;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 15px; /* Reduced padding */
    background-color: var(--secondary-color);
    color: white;
    margin-top: 20px; /* Reduced margin */
}

.color-key {
    margin-bottom: 15px; /* Reduced margin */
    padding: 10px; /* Reduced padding */
    background: #f1f1f1;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    gap: 10px; /* Reduced gap */
}

.color-key span {
    display: inline-block;
    padding: 6px 12px; /* Reduced padding */
    border-radius: 4px;
    color: white;
    font-weight: 500;
}

.key-green {
    background-color: #4caf50;
}

.key-orange {
    background-color: #ff9800;
}

.key-red {
    background-color: #f44336;
}

.submission-list {
    margin-bottom: 15px; /* Reduced margin */
}

.submission-item {
    padding: 15px; /* Reduced padding */
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 10px; /* Reduced margin */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submission-item:hover {
    background: #e3f2fd;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0; /* Reduced margin */
    padding: 8px 0; /* Reduced padding */
    border-top: 1px solid var(--secondary-color);
    position: relative;
}

.timeline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--secondary-color);
}

.timeline-step {
    text-align: center;
    flex: 1;
    position: relative;
}

.timeline-step::before {
    content: '';
    position: absolute;
    top: -8px; /* Adjusted top position */
    left: 50%;
    transform: translateX(-50%);
    width: 16px; /* Reduced width */
    height: 16px; /* Reduced height */
    background: var(--accent-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-step.active::before {
    background: #4caf50;
}

.product-status {
    margin-top: 15px; /* Reduced margin */
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Reduced gap */
    justify-content: space-between;
}

.product {
    text-align: center;
    width: 80px; /* Reduced width */
    padding: 8px; /* Reduced padding */
    border-radius: 5px;
    color: white;
    font-weight: 500;
}

.product.green {
    background-color: #4caf50;
}

.product.orange {
    background-color: #ff9800;
}

.product.red {
    background-color: #f44336;
}

.reveal {
    display: none;
    margin-top: 10px; /* Reduced margin */
    background-color: #f1f1f1;
    padding: 10px; /* Reduced padding */
    border-radius: 5px;
}

.reveal button {
    margin: 3px; /* Reduced margin */
    background-color: var(--accent-color);
    color: white;
    padding: 10px 15px; /* Reduced padding */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reveal button:hover {
    background-color: #003366;
}

button.toggle-reveal {
    margin-top: 10px; /* Reduced margin */
    background-color: var(--accent-color);
    color: white;
    padding: 10px; /* Reduced padding */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.toggle-reveal:hover {
    background-color: #003366;
}

main {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

h1 {
    margin: 0 0 20px;
}

.chat-box {
    display: flex;
    flex-direction: column;
    height: 400px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f9f9f9;
}

.message {
    margin-bottom: 10px;
}

.message.underwriter {
    text-align: left;
    color: #00509E;
}

.message.user {
    text-align: right;
    color: #333;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
    background: #fff;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.chat-input button {
    margin-left: 10px;
    padding: 8px 15px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.chat-input button:hover {
    background-color: #003366;
}

form, .drop-zone {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.drop-zone {
    border: 2px dashed var(--accent-color);
    font-size: 16px;
    color: var(--secondary-color);
}

.drop-zone.dragging {
    background: #f0f8ff;
    border-color: var(--secondary-color);
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

input, button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #003366;
}

.waiting-message {
    display: none;
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
    color: var(--secondary-color);
}

.alert-message {
    display: none;
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
    color: var(--secondary-color);
}

.exit-option {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--secondary-color);
}

form {
    padding: 25px;
    background: white;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 10px;
}

.results {
    margin: 30px auto;
    background: white;
    border-radius: 10px;
    padding: 25px;
    max-width: 800px;
    display: none;
}

.results h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.result-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

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

.result-item p {
    margin: 8px 0;
}

.result-item button {
    margin-top: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.result-item button:hover {
    background-color: #003366;
}

.no-results {
    color: #dc3545;
    font-size: 1.1rem;
    margin-top: 20px;
    display: none;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

select, input, button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Product Tiles */
.product-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.product-tile {
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #ddd;
}

.product-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-tile[data-type="gl"] { background-color: #e57373; color: var(--secondary-color); }
.product-tile[data-type="property"] { background-color: #ffb74d; color: var(--secondary-color); }
.product-tile[data-type="do"] { background-color: #fff176; color: var(--secondary-color); }
.product-tile[data-type="crime"] { background-color: #aed581; color: var(--secondary-color); }
.product-tile[data-type="epli"] { background-color: #4dd0e1; color: var(--secondary-color); }
.product-tile[data-type="fiduciary"] { background-color: #64b5f6; color: var(--secondary-color); }
.product-tile[data-type="prof-liability"] { background-color: #ba68c8; color: var(--secondary-color); }

/* Master Summary */
.master-summary {
    margin-top: 20px;
    padding: 20px;
    background: var(--primary-color);
    border-radius: 10px;
}

.master-summary h2 {
    color: var(--secondary-color);
}

.master-summary table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.master-summary table th, .master-summary table td {
    text-align: left;
    border: 1px solid #ddd;
    padding: 10px;
}

.master-summary table th {
    background-color: var(--secondary-color);
    color: white;
}

/* Button */
.button {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 25px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #003366;
}

/* Credits */
.credits {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 10px;
    padding: 20px;
    background: #f1f1f1;
    color: var(--secondary-color);
    margin-top: 25px;
}

.credits h2 {
    margin-bottom: 15px;
    text-align: center;
}

.credit-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.credit-option input {
    margin-right: 10px;
    transform: scale(1.2); /* Make checkboxes a bit larger */
}

.credit-option label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Quote Details */
.quote-details {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
}

/* Ensure chat bubble doesn't conflict with other elements */
.chat-bubble-container {
    z-index: 9999;
}

/* Adjust main content to not be hidden by chat */
main {
    padding-bottom: 80px;
}

/* Location section styles - add to existing style.css */
.location-section {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* Adjusted columns for city, state, zip */
    gap: 15px;
    padding: 15px;
}

.location-section .form-group.full-width {
    grid-column: 1 / -1;
}

.location-section .form-group.half-width {
    grid-column: span 2;
}

.location-section .form-group label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.location-section .form-group input,
.location-section .form-group select,
.location-section .form-group textarea {
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.location-section .address-fields {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.location-section .street-address {
    grid-column: 1 / -1;
}

/* Make currency inputs more compact */
.location-section input[type="number"] {
    text-align: right;
    padding-right: 20px;
}

/* Add currency symbol */
.location-section input[name*="Value"],
.location-section input[name*="Income"] {
    position: relative;
    padding-left: 20px;
}

.location-section input[name*="Value"]::before,
.location-section input[name*="Income"]::before {
    content: "$";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

/* Two-column layout for main sections */
.exposure-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* General information section */
.general-info {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: fit-content;
}

/* Locations section */
.locations {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* More compact location sections */
.location-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.location-section .form-group {
    margin-bottom: 10px;
}

.location-section .form-group label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.location-section .form-group input,
.location-section .form-group select,
.location-section .form-group textarea {
    padding: 6px 10px;
    font-size: 14px;
}

/* Responsive layout */
@media (max-width: 1024px) {
    .exposure-container {
        grid-template-columns: 1fr;
    }
}

/* Add Location button styling */
#addLocationBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #00449E;
    border: 1px solid #00449E;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    margin-bottom: 20px;
    width: fit-content;
}

#addLocationBtn i {
    font-size: 12px;
}

#addLocationBtn:hover {
    background: #f0f7ff;
    transform: translateY(-1px);
}

/* Update locations container layout */
#locations-container {
    grid-column: 1 / -1;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Action buttons container */
.action-buttons {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

/* Modern Insured Details section */
.insured-info {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.selected-business {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
}

.business-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.business-header i {
    color: #00449E;
    font-size: 16px;
}

.business-header h3 {
    margin: 0;
    color: #2C3E50;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.business-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-left: 24px; /* Align with header text */
    color: #64748b;
    font-size: 14px;
}

.business-address i {
    color: #00449E;
    font-size: 14px;
    margin-top: 2px;
}

.address-text {
    line-height: 1.3;
}

/* Currency input styling */
.currency-input {
    position: relative;
    display: flex;
    align-items: center;
}

.dollar-sign {
    position: absolute;
    left: 12px;
    color: #64748b;
    z-index: 1;
}

input.currency {
    padding-left: 24px !important;
    text-align: right;
    font-family: monospace;
}

/* Style all currency inputs */
input[name*="Value"],
input[name*="Income"],
input[name="revenue"],
input[name="assets"] {
    text-align: right;
    padding-right: 12px;
}

/* Currency field styling */
.currency-field {
    padding-left: 25px !important;  /* Make room for the $ */
    position: relative;
    text-align: right;
}

.form-group {
    position: relative;
}

/* Add dollar sign before currency fields */
.form-group input.currency-field {
    position: relative;
}

.form-group input.currency-field::before {
    content: '$';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    z-index: 1;
}

/* Style the currency icon in labels */
.form-group label i.fa-dollar-sign {
    color: #00449E;
    margin-right: 5px;
}
