/**
 * COGES Calcolatore - Style Professionale
 * Versione 2.2.0 - Brand COGES
 * Colori: Giallo accento, bianco, grigio, nero
 */

/* ========================================
   VARIABILI COLORI COGES
   ======================================== */
:root {
    --coges-yellow: #FDB913;
    --coges-black: #2C2C2C;
    --coges-gray-dark: #4A4A4A;
    --coges-gray-medium: #999999;
    --coges-gray-light: #E5E5E5;
    --coges-bg-light: #F9F9F9;
    --coges-white: #FFFFFF;
}

/* ========================================
   CONTAINER PRINCIPALE
   ======================================== */
.coges-calcolatore-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--coges-white);
}

/* ========================================
   MESSAGGI SUCCESSO/ERRORE
   ======================================== */
.coges-message {
    padding: 20px 30px;
    border-radius: 6px;
    margin: 30px 40px;
    font-size: 1em;
    line-height: 1.6;
    animation: slideDown 0.5s ease;
    border-left: 4px solid;
}

.coges-message-success {
    background: #f0fdf4;
    color: #15803d;
    border-left-color: #22c55e;
}

.coges-message-error {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.coges-message a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   HEADER COGES - Stile Website (giallo con titolo dentro)
   ======================================== */
.coges-header {
    background: var(--coges-yellow);
    color: var(--coges-black);
    padding: 60px 40px;
    text-align: left;
    border: none;
}

.coges-header h1 {
    font-size: 2.6em;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--coges-black);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.coges-header p {
    font-size: 1.1em;
    margin: 0 0 10px 0;
    color: var(--coges-black);
    font-weight: 400;
    opacity: 0.9;
}

.coges-header .subtitle {
    font-size: 0.95em;
    color: var(--coges-black);
    margin: 0;
    opacity: 0.8;
}

/* ========================================
   SEZIONE CALCOLATORE
   ======================================== */
.coges-calculator-section {
    background: var(--coges-white);
    padding: 50px 40px;
    border-bottom: 1px solid var(--coges-gray-light);
}

.coges-section-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--coges-black);
    margin: 0 0 40px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--coges-yellow);
    display: inline-block;
}

/* ========================================
   FORM ELEMENTI
   ======================================== */
.coges-form-group {
    margin-bottom: 25px;
}

.coges-form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--coges-black);
    font-weight: 500;
    font-size: 0.95em;
}

.coges-select,
.coges-input,
.coges-input[type="text"],
.coges-input[type="email"],
.coges-input[type="tel"],
.coges-input[type="number"],
textarea.coges-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1em;
    border: 1px solid var(--coges-gray-light);
    border-radius: 4px;
    background: var(--coges-white);
    color: var(--coges-black);
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.coges-select:hover,
.coges-input:hover {
    border-color: var(--coges-gray-medium);
}

.coges-select:focus,
.coges-input:focus {
    outline: none;
    border-color: var(--coges-yellow);
    box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.1);
}

.coges-select:disabled {
    background: var(--coges-bg-light);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Grid per campi affiancati */
.coges-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .coges-input-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   BOTTONI STILE COGES
   ======================================== */
.coges-btn-calculate,
button[type="submit"].coges-btn-calculate {
    background: var(--coges-yellow);
    color: var(--coges-black);
    border: none;
    padding: 16px 40px;
    font-size: 1.05em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.3px;
}

.coges-btn-calculate:hover {
    background: #e5a711;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 185, 19, 0.3);
}

.coges-btn-calculate:active {
    transform: translateY(0);
}

.coges-btn-request-offer {
    background: var(--coges-black);
    color: var(--coges-white);
    border: 2px solid var(--coges-black);
    padding: 16px 40px;
    font-size: 1.05em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.coges-btn-request-offer:hover {
    background: var(--coges-white);
    color: var(--coges-black);
}

/* ========================================
   INPUT SPECIFICI (Palette/Peso)
   ======================================== */
.coges-palette-input,
.coges-peso-input {
    margin-top: 15px;
    padding: 20px;
    background: var(--coges-bg-light);
    border-radius: 6px;
    border: 1px solid var(--coges-gray-light);
}

/* ========================================
   RISULTATI
   ======================================== */
.coges-results-section {
    background: var(--coges-white);
    padding: 40px;
    margin-top: 30px;
    border-radius: 6px;
    border: 2px solid #22c55e;
    animation: fadeIn 0.5s ease;
}

.coges-results-header {
    text-align: center;
    margin-bottom: 30px;
}

.coges-results-header h2 {
    font-size: 1.8em;
    color: #15803d;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.coges-price-display {
    text-align: center;
    padding: 40px 30px;
    background: #F5F5F5;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 5px solid #FDB913;
}

.coges-price-label {
    font-size: 1.1em;
    color: #2C2C2C;
    margin-bottom: 15px;
    font-weight: 500;
}

.coges-price-amount {
    font-size: 3.5em;
    color: #2C2C2C;
    font-weight: 700;
    margin: 15px 0;
    line-height: 1.3;
}

.coges-price-note {
    color: #666;
    font-size: 0.95em;
    margin-top: 10px;
}

.coges-price-details {
    background: #F5F5F5;
    padding: 25px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 5px solid #FDB913;
}

.coges-price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--coges-gray-light);
}

.coges-price-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1em;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid var(--coges-gray-light);
}

.coges-price-row span:first-child {
    color: var(--coges-gray-dark);
}

.coges-price-row span:last-child {
    color: var(--coges-black);
    font-weight: 600;
}

.coges-delivery-info {
    background: #F5F5F5;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #FDB913;
    color: #2C2C2C;
    font-size: 0.95em;
    line-height: 1.7;
    margin-top: 20px;
}

/* ========================================
   FORM RICHIESTA OFFERTA
   ======================================== */
.coges-email-form-section {
    background: var(--coges-bg-light);
    padding: 50px 40px;
    margin-top: 30px;
    border-radius: 8px;
    border: 1px solid var(--coges-gray-light);
}

.coges-email-form-section .coges-section-title {
    color: var(--coges-black);
}

/* ========================================
   UTILITIES
   ======================================== */
.coges-hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   ICONE
   ======================================== */
.coges-icon-truck::before {
    content: "🚛 ";
}

.coges-icon-calc::before {
    content: "🔍 ";
}

/* ========================================
   SELETTORE LINGUA PDF
   ======================================== */
.coges-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coges-radio-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coges-radio-label:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
}

.coges-radio-label input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.coges-radio-label input[type="radio"]:checked {
    accent-color: #667eea;
}

.coges-radio-label.selected {
    background-color: #edf2f7;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.coges-radio-text {
    font-size: 1em;
    color: #2d3748;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .coges-header h1 {
        font-size: 1.8em;
        margin: 30px 20px 15px 20px;
    }
    
    .coges-header p,
    .coges-header .subtitle {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .coges-calculator-section,
    .coges-email-form-section {
        padding: 30px 20px;
    }
    
    .coges-message {
        margin: 20px;
    }
    
    .coges-price-amount {
        font-size: 2.2em;
    }
    
    .coges-price-row {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .coges-header h1 {
        font-size: 1.5em;
    }
    
    .coges-btn-calculate,
    .coges-btn-request-offer {
        padding: 14px 30px;
        font-size: 1em;
    }
}
