/* Modern RouteBox Calculator Styles - Matching Form Design */
.routebox-modern-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.routebox-header {
    background: #2563eb;
    color: white;
    padding: 32px 32px 24px;
    text-align: center;
}

.routebox-title {
    color: #ffffff;
    font-size: 1.4rem; /* 20px equivalent */
    font-weight: 600;
    margin: 0 0 8px;
}

.routebox-subtitle {
    font-size: 1.4rem; /* 16px - increased from 14px */
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.routebox-form {
    padding: 2.5rem;
}

.routebox-card {
    margin-bottom: 1.5rem;
}

.routebox-card-header {
    margin-bottom: 1rem;
}

.routebox-card-title {
    font-size: 1rem; /* 14px */
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.routebox-input-group {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.routebox-input-wrapper {
    flex: 1;
    position: relative;
}

/* Updated input styling to match forms */
.routebox-input {
    width: 100%;
    padding: 0.875rem 0; /* 14px equivalent */
    border: none !important;
    border-bottom: 2px solid #e2e8f0 !important;
    font-size: 0.875rem; /* 14px */
    font-weight: 400;
    background: transparent;
    transition: all 0.3s ease;
    outline: none;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.routebox-input:focus {
    border-bottom: 2px solid #2563eb !important;
    border-bottom-width: 3px !important;
    box-shadow: none !important;
}

/* Updated select styling */
.routebox-select {
    padding: 0.875rem 0.5rem; /* 14px equivalent */
    border: none !important;
    border-bottom: 2px solid #e2e8f0 !important;
    font-size: 1.4rem; /* 14px */
    font-weight: 400;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    border-radius: 0 !important;
    outline: none;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.routebox-select:focus {
    border-bottom: 2px solid #2563eb !important;
    border-bottom-width: 3px !important;
    box-shadow: none !important;
}

.routebox-unit-selector {
    margin-bottom: 1.5rem;
}

.routebox-dimensions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.routebox-dimension-input {
    text-align: left;
}

.routebox-label {
    display: block;
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* UPDATED BUTTON STYLING - Matching pickup page exactly */
.routebox-calculate-btn {
    background-color: rgb(62, 100, 255);
    color: rgb(255, 255, 255);
    font-size: 14px;
    text-align: left;
    line-height: 22px;
    letter-spacing: 0px;
    font-weight: 400;
    border-color: rgba(0, 0, 0, 0);
    border-style: solid;
    border-width: 1px;
    padding: 12px 18px 12px 18px;
    border-radius: 5px;
}

.routebox-calculate-btn:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.routebox-calculate-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.routebox-btn-loading .routebox-btn-text {
    opacity: 0.7;
}

.routebox-result {
    /*margin-top: 1.5rem;*/
}

.routebox-success-card,
.routebox-quote-card,
.routebox-error-card {
    padding: 1rem; /* Increased padding */
    border-radius: 0px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.routebox-success-card {
    background: #ffffff;
}

.routebox-quote-card {
    background: #ffcc00;
}

.routebox-error-card {
    background-color: #f8d7da;
}

.routebox-success-content,
.routebox-quote-content,
.routebox-error-content {
    text-align: left;
}

.routebox-success-title,
.routebox-quote-title,
.routebox-error-title {
    font-size: 1.4rem; /* 18px - increased from 16px */
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.routebox-success-rate {
    font-size: 2.8rem; /* 24px - increased from 20px */
    font-weight: 600;
    margin: 0.75rem 0;
}

.routebox-success-note,
.routebox-quote-message,
.routebox-error-message {
    font-size: 1.4rem; /* 16px - increased from 15px */
    margin: 0;
    line-height: 1.6;
}

.routebox-contact-btn {
    background-color: rgb(62, 100, 255);
    color: rgb(255, 255, 255);
    font-size: 14px;
    text-align: left;
    line-height: 22px;
    letter-spacing: 0px;
    font-weight: 400;
    border-color: rgba(0, 0, 0, 0);
    border-style: solid;
    border-width: 1px;
    padding: 12px 18px 12px 18px;
    border-radius: 5px;
    display: block;
    margin-top: 10px;
    width: max-content;
}

.routebox-contact-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.routebox-details {
    margin-top: 1.5rem;
}

.routebox-details-content {
    text-align: center;
    font-size: 1.4rem; /* 16px - increased from 14px */
    color: #64748b;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 0px;
    line-height: 1.6;
}

/* Action buttons - Updated to match pickup page */
.routebox-action-buttons {
    margin-top: 1.5rem;
}

.routebox-pickup-btn {
    background-color: rgb(62, 100, 255);
    color: rgb(255, 255, 255);
    font-size: 14px;
    text-align: left;
    line-height: 22px;
    letter-spacing: 0px;
    font-weight: 400;
    border-color: rgba(0, 0, 0, 0);
    border-style: solid;
    border-width: 1px;
    padding: 12px 18px 12px 18px;
    border-radius: 5px;
    display: block;
    margin-top: 10px;
    width: max-content;
}

.routebox-pickup-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .routebox-modern-container {
        max-width: 100%;
        margin: 1rem auto;
        border-radius: 0;
    }
    
    .routebox-header {
        padding: 1.5rem 1.5rem 1.25rem;
    }
    
    .routebox-form {
        padding: 1.5rem;
    }
    
    .routebox-dimensions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .routebox-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .routebox-select {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .routebox-action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .routebox-pickup-btn {
        width: 100%;
        max-width: 200px;
    }
}

select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"] {
    font-size: 1.4rem;
}

.routebox-select {
    width: auto !important;
    min-width: 120px !important;
    max-width: 180px !important;

    display: inline-block !important;

    font-size: 14px !important;
    font-family: "proxima", sans-serif !important;
    color: #7a7c7f !important;

    background-color: transparent !important;

    padding: 0.875rem 1.8rem 0.875rem 0 !important;

    border: none !important;
    border-bottom: 2px solid #e2e8f0 !important;
    border-radius: 0 !important;

    outline: none !important;
    box-shadow: none !important;

    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;

    cursor: pointer !important;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a7c7f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;

    background-repeat: no-repeat !important;
    background-position: right 0px center !important;
    background-size: 14px !important;

    transition: all 0.2s ease;
}

.routebox-select:focus {
    border-bottom: 2px solid #2563eb !important;
    color: #1e293b !important;
}

.routebox-select option {
    font-size: 14px;
}