/**
 * Metal Roofing Calculator - styles
 */

.mrc-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.mrc-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-bottom: 4px solid #C62828;
    border-radius: 12px;
    color: #C62828;
}

.mrc-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: #C62828;
    font-weight: 700;
}

.mrc-header .subtitle {
    font-size: 1.2rem;
    color: #555;
}

.mrc-badge {
    display: inline-block;
    background: #C62828;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mrc-form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #C62828;
}

.mrc-form-section h2 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mrc-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #C62828;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
}

.mrc-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mrc-panel-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mrc-panel-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.mrc-panel-card label {
    display: block;
    padding: 20px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.mrc-panel-card input[type="radio"]:checked + label {
    background: #fce4ec;
    border-color: #C62828;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.2);
    transform: translateY(-2px);
}

.mrc-panel-card label:hover {
    border-color: #C62828;
    transform: translateY(-2px);
}

.mrc-panel-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f0f0f0;
}

.mrc-panel-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.mrc-panel-details {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.6;
}

.mrc-panel-price {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-weight: 700;
    color: #C62828;
    font-size: 1.1rem;
}

.mrc-gauge-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.mrc-gauge-option {
    flex: 1;
    min-width: 140px;
}

.mrc-gauge-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.mrc-gauge-option label {
    display: block;
    padding: 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mrc-gauge-option input[type="radio"]:checked + label {
    background: #C62828;
    color: white;
    border-color: #C62828;
    box-shadow: 0 4px 8px rgba(198, 40, 40, 0.3);
}

.mrc-gauge-option label:hover {
    border-color: #C62828;
}

.mrc-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.mrc-color-option {
    position: relative;
}

.mrc-color-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.mrc-color-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
    gap: 8px;
}

.mrc-color-swatch {
    width: 100%;
    height: 60px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.mrc-color-option input[type="radio"]:checked + label {
    border-color: #C62828;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
    transform: translateY(-2px);
}

.mrc-color-option label:hover {
    border-color: #C62828;
    transform: translateY(-2px);
}

.mrc-color-26g {
    color: #C62828;
    font-weight: 700;
}

/* Color swatch styles matching the color chart */
.color-polar-white { background: #e8e8e8; }
.color-white { background: #ffffff; }
.color-bright-white { background: #fafafa; }
.color-hawaiian-blue { background: #5b7a94; }
.color-cobalt-blue { background: #3d5266; }
.color-light-stone { background: #c9c2a8; }
.color-saddle-tan { background: #a89069; }
.color-coffee-brown { background: #4d3c39; }
.color-burnished-slate { background: #3c3d3c; }
.color-ash-gray { background: #9a9b98; }
.color-charcoal-gray { background: #5a5a5a; }
.color-evergreen { background: #2d5042; }
.color-ivy-green { background: #2d5555; }
.color-scarlet-red { background: #c41e3a; }
.color-rustic-red { background: #7c3640; }
.color-wine-red { background: #4d2c33; }
.color-true-black { background: #1a1a1a; }
.color-galvalume { background: linear-gradient(135deg, #b8b8b8 0%, #d4d4d4 50%, #b8b8b8 100%); }

.mrc-form-group {
    margin-bottom: 20px;
}

.mrc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.mrc-form-group input,
.mrc-form-group select,
.mrc-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mrc-form-group input:focus,
.mrc-form-group select:focus,
.mrc-form-group textarea:focus {
    outline: none;
    border-color: #C62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.mrc-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.mrc-trim-item {
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
}

.mrc-trim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mrc-trim-header h4 {
    margin: 0;
    color: #2c3e50;
}

.mrc-btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mrc-btn-remove:hover {
    background: #c82333;
}

.mrc-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mrc-btn-primary {
    background: linear-gradient(135deg, #C62828 0%, #8B0000 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

.mrc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(198, 40, 40, 0.4);
}

.mrc-btn-secondary {
    background: #6c757d;
    color: white;
}

.mrc-btn-secondary:hover {
    background: #5a6268;
}

.mrc-btn-success {
    background: #28a745;
    color: white;
}

.mrc-btn-success:hover {
    background: #218838;
}

.mrc-results {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 3px solid #C62828;
}

.mrc-results h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.mrc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mrc-result-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mrc-result-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mrc-result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.mrc-grand-total {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.mrc-grand-total h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.mrc-grand-total .amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.mrc-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.mrc-status {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.mrc-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.mrc-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.mrc-factory-info {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mrc-factory-info h4 {
    margin: 0 0 10px 0;
    color: #2e7d32;
}

.mrc-factory-info p {
    margin: 5px 0;
    color: #1b5e20;
}

@media (max-width: 768px) {
    .mrc-container {
        padding: 20px;
    }
    
    .mrc-header h1 {
        font-size: 1.8rem;
    }
    
    .mrc-panel-grid {
        grid-template-columns: 1fr;
    }
    
    .mrc-gauge-selector {
        flex-direction: column;
    }
    
    .mrc-action-buttons {
        flex-direction: column;
    }
    
    .mrc-btn {
        width: 100%;
    }
}
