/* Equipment Sizing Calculator - Clean & Centered Design */
/* Messer-inspired color palette: Blue (#2E5BBA) and Red (#C8102E) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fc 0%, #e8ecf4 100%);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header - Clean & Centered */
header {
    text-align: center;
    margin-bottom: 50px;
    padding: 50px 40px;
    background: linear-gradient(135deg, #2E5BBA 0%, #1e3f7a 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(46, 91, 186, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    opacity: 0.6;
}

header > * {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    text-shadow: 0 3px 6px rgb(255, 255, 255, 0.2);
}

header p {
    font-size: 1.2em;
    opacity: 0.95;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation Links */
.nav-link {
    color: white !important;
    text-decoration: none;
    font-size: 1.1em;
    opacity: 0.9;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-left: -30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    opacity: 1;
    transform: translateX(-3px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Messer Branding - Centered */
.messer-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.messer-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.1));
}

.app-title {
    font-size: 2em;
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Header Navigation - Clean Layout */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    padding: 0 20px;
    min-height: 60px;
    position: relative;
}

.header-nav .nav-link {
    position: absolute;
    left: 20px;
}

.messer-logo {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.messer-logo:hover {
    transform: scale(1.05);
}

/* Form Section - Centered & Clean */
.form-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    border: 1px solid rgba(46, 91, 186, 0.1);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2E5BBA;
    font-size: 1.1em;
    text-align: center;
}

.location-options {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin: 30px 0;
}

.location-option {
    padding: 25px;
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    background: #f8f9fc;
    transition: all 0.3s ease;
    text-align: center;
}

.location-option:hover {
    border-color: #2E5BBA;
    box-shadow: 0 4px 15px rgba(46, 91, 186, 0.1);
    transform: translateY(-2px);
}

.option-divider {
    text-align: center;
    color: #666;
    font-weight: 600;
    font-size: 1.1em;
    padding: 15px;
    background: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group input,
.form-group select,
.form-group .city-dropdown {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group .city-dropdown:focus {
    outline: none;
    border-color: #2E5BBA;
    box-shadow: 0 0 0 4px rgba(46, 91, 186, 0.15);
    transform: translateY(-1px);
}

.help-text-small {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    text-align: center;
    font-style: italic;
}

/* Centered Input Groups */
.input-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: end;
}

.input-col {
    flex: 1;
    max-width: 200px;
}

/* Advanced Options - Clean Toggle */
.advanced-options {
    margin: 40px 0;
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.toggle-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fc 0%, #e8ecf4 100%);
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    color: #2E5BBA;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: linear-gradient(135deg, #e8ecf4 0%, #d4daeb 100%);
}

.advanced-content {
    padding: 30px;
    border-top: 1px solid #e1e8ed;
    background: white;
}

/* Form Actions - Centered */
.form-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #2E5BBA 0%, #C8102E 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 91, 186, 0.3);
    min-width: 200px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 91, 186, 0.4);
}

.btn-secondary {
    background: white;
    color: #2E5BBA;
    border: 2px solid #2E5BBA;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.btn-secondary:hover {
    background: #2E5BBA;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 91, 186, 0.3);
}

/* Error Section - Clean Design */
.error-section {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    border: 2px solid #fcc;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.error-section h3 {
    color: #c33;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.error-section ul {
    list-style: none;
}

.error-section li {
    background: white;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    border-left: 4px solid #c33;
    box-shadow: 0 2px 8px rgba(204, 51, 51, 0.1);
}

/* Results Section - Symmetric Design */
.results-section {
    margin-top: 40px;
}

.results-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
    color: #2E5BBA;
    font-weight: 700;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 91, 186, 0.1);
}

.result-card h3 {
    color: #2E5BBA;
    margin-bottom: 25px;
    font-size: 1.6em;
    text-align: center;
    border-bottom: 3px solid #e1e8ed;
    padding-bottom: 15px;
    font-weight: 700;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.result-row .label {
    font-weight: 600;
    color: #555;
    flex: 1;
    font-size: 1.1em;
}

.result-row .value {
    font-weight: 700;
    color: #2E5BBA;
    text-align: right;
    flex: 1;
    font-size: 1.2em;
}

/* Usage Table - Clean & Centered */
.usage-table-container {
    overflow-x: auto;
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.usage-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.usage-table th,
.usage-table td {
    padding: 18px 15px;
    text-align: center;
    border-bottom: 1px solid #e1e8ed;
}

.usage-table th {
    background: linear-gradient(135deg, #2E5BBA 0%, #1e3f7a 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.usage-table th:first-child {
    border-top-left-radius: 15px;
}

.usage-table th:last-child {
    border-top-right-radius: 15px;
}

.usage-table tr:hover {
    background: linear-gradient(135deg, #f8f9fc 0%, #e8ecf4 100%);
}

.usage-table td {
    font-weight: 600;
    color: #333;
}

.usage-table td:first-child {
    color: #2E5BBA;
    font-weight: 700;
}

/* Equipment Recommendations - Centered Cards */
.equipment-item {
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fc 0%, #e8ecf4 100%);
    border-radius: 15px;
    border-left: 5px solid #2E5BBA;
    text-align: center;
}

.equipment-item h4 {
    color: #2E5BBA;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 700;
}

.equipment-rec {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #2E5BBA;
}

/* Industry Selection - Symmetric Grid */
.industry-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
    padding: 0 20px;
}

.industry-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 91, 186, 0.02) 0%, rgba(200, 16, 46, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.industry-card:hover::before {
    opacity: 1;
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(46, 91, 186, 0.2);
    border-color: #2E5BBA;
}

.industry-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.industry-card.coming-soon:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.industry-icon {
    font-size: 3.5em;
    margin-bottom: 25px;
    color: #2E5BBA;
}

.industry-title {
    font-size: 1.6em;
    font-weight: 700;
    color: #2E5BBA;
    margin-bottom: 15px;
}

.industry-description {
    color: #666;
    font-size: 1em;
    line-height: 1.5;
    max-width: 250px;
    margin: 0 auto;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #C8102E 0%, #a00d24 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

/* Warning Messages */
.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 20px;
    color: #666;
    font-size: 0.95em;
    border-top: 1px solid rgba(46, 91, 186, 0.1);
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black;
        font-size: 12pt;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    header {
        background: none !important;
        color: black;
        border: 2px solid black;
    }
    
    .form-section,
    .btn-primary,
    .btn-secondary,
    .nav-link {
        display: none;
    }
    
    .result-card {
        border: 1px solid black;
        box-shadow: none;
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .usage-table {
        border: 1px solid black;
    }
    
    .usage-table th,
    .usage-table td {
        border: 1px solid black;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    header {
        padding: 40px 25px;
        margin-bottom: 30px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    header p {
        font-size: 1em;
    }
    
    .messer-branding {
        flex-direction: column;
        gap: 20px;
    }
    
    .messer-logo {
        height: 70px;
    }
    
    .app-title {
        font-size: 1.7em;
    }
    
    .form-section {
        padding: 25px;
    }
    
    .location-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .option-divider {
        width: 40px;
        height: 40px;
        font-size: 0.9em;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .result-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px 0;
    }
    
    .result-row .value {
        text-align: center;
        margin-top: 8px;
        font-size: 1.3em;
    }
    
    .usage-table {
        font-size: 14px;
    }
    
    .usage-table th,
    .usage-table td {
        padding: 12px 8px;
    }
    
    .industry-selection {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 40px 0;
        padding: 0 10px;
    }
    
    .industry-card {
        padding: 35px 25px;
    }
    
    .equipment-item {
        margin-bottom: 20px;
        padding: 20px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }
    
    header {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .result-card {
        padding: 25px 20px;
    }
}

/* FORCE WHITE TEXT - OVERRIDE ALL */
.main-title,
header .main-title,
h1.main-title,
header h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Nearest Messer ASU Locations - Card Grid Design */
.location-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.location-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.location-card:hover {
    border-color: #2E5BBA;
    box-shadow: 0 6px 20px rgba(46, 91, 186, 0.15);
    transform: translateY(-3px);
}

.location-number {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #2E5BBA 0%, #1e3f7a 100%);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(46, 91, 186, 0.3);
}

.location-title {
    color: #2E5BBA;
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-right: 45px;
    line-height: 1.3;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8ecf4;
    font-size: 0.95em;
}

.detail-icon {
    font-size: 1.2em;
    min-width: 24px;
    text-align: center;
}

.detail-label {
    color: #666;
    font-weight: 600;
    min-width: 65px;
}

.detail-value {
    color: #333;
    font-weight: 500;
    flex: 1;
}

/* Responsive adjustments for location cards */
@media (max-width: 768px) {
    .location-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .location-card {
        padding: 20px;
    }
    
    .location-title {
        font-size: 1em;
    }
    
    .detail-label {
        min-width: 55px;
        font-size: 0.9em;
    }
}
