/**
 * Contact Page Styles
 * Ammattimainen tyyli MekryPro-teemaan sopivaksi
 * @author    Kaido Mägi
 * @copyright 2025
 */

/* ============================================================
   CONTACT PAGE LAYOUT
   ============================================================ */

/* Contact-sivu: ei sidebaria, täysi leveys */
body:not([class*="role-"]) .contact-page {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 48px; /* Topbarin korkeus */
    padding: 40px 20px 60px 20px;
    box-sizing: border-box;
}

/* Container: max-width ja keskitys */
.contact-page-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Pääkortti: valkoinen tausta, pehmeä varjo */
.contact-page .contact-main-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
}

/* Page Head: otsikko ja kuvaus */
.contact-page .contact-page-head {
    margin-bottom: 32px;
}

.contact-page .contact-page-head h1 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.contact-page .contact-page-head .subtle {
    margin: 0;
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
}

/* Back button: yhtenäinen tyyli */
.contact-page .contact-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background 0.2s, border-color 0.2s;
}

.contact-page .contact-back-link:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    text-decoration: none;
}

/* ============================================================
   CONTACT GRID (2 saraketta desktop, 1 mobiilissa)
   ============================================================ */

.contact-page .contact-grid {
    display: grid;
    grid-template-columns: minmax(360px, 420px) 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 32px;
}

/* ============================================================
   CONTACT INFO CARD (vasen)
   ============================================================ */

.contact-page .contact-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-page .contact-info-card h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.contact-page .contact-info-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.contact-page .contact-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-page .contact-info-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-page .contact-info-value {
    font-size: 15px;
    color: #111827;
    line-height: 1.6;
    margin: 0;
}

.contact-page .contact-info-value a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-page .contact-info-value a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Osoite: monirivinen */
.contact-page .contact-info-value.contact-address {
    white-space: pre-line;
    color: #374151;
}

/* Aukioloajat: kahdella rivillä */
.contact-page .contact-info-value.contact-hours {
    color: #374151;
    line-height: 1.8;
}

/* ============================================================
   CONTACT FORM CARD (oikea)
   ============================================================ */

.contact-page .contact-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-page .contact-form-card h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.contact-page .contact-form-card .subtle {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Form Grid */
.contact-page .contact-form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-page .contact-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-page .contact-form-row label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.contact-page .contact-form-row input[type="text"],
.contact-page .contact-form-row input[type="email"],
.contact-page .contact-form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.contact-page .contact-form-row input[type="text"]:focus,
.contact-page .contact-form-row input[type="email"]:focus,
.contact-page .contact-form-row textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-page .contact-form-row textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Submit Button: MekryPro-tyyli */
.contact-page .contact-form-submit {
    width: 100%;
    padding: 12px 24px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
}

.contact-page .contact-form-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.contact-page .contact-form-submit:active {
    transform: translateY(0);
}

/* ============================================================
   NOTICES (Error/Success)
   ============================================================ */

.contact-page .notice {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
}

.contact-page .notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.contact-page .notice-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    /* Contact-sivu mobiilissa */
    body:not([class*="role-"]) .contact-page {
        padding: 20px 16px 40px 16px;
        margin-top: 48px;
    }
    
    .contact-page .contact-main-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .contact-page .contact-page-head h1 {
        font-size: 24px;
    }
    
    .contact-page .contact-page-head .subtle {
        font-size: 15px;
    }
    
    /* Grid: 1 sarake mobiilissa */
    .contact-page .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 24px;
    }
    
    .contact-page .contact-info-card,
    .contact-page .contact-form-card {
        padding: 20px;
    }
    
    .contact-page .contact-back-link {
        padding: 8px 14px;
        font-size: 13px;
    }
}

