/* Reset i ustawienia bazowe */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #2d5aa0;
    --accent-color: #e63946;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 6px;
    --box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --google-blue: #4285F4;
    --google-green: #34A853;
    --google-yellow: #FBBC05;
    --google-red: #EA4335;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark-color);
    background-color: #fff;
    transform-origin: top center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typografia */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.4rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--light-color);
}

/* Nagłówek */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.7rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.company-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0.9rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.phone-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.phone-link i {
    margin-right: 0.4rem;
    font-size: 0.95rem;
}

/* Sekcja główna */
.main-content {
    padding: 2rem 0;
}

section {
    margin-bottom: 2.5rem;
}

/* Sekcja O nas */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* Ważne: rozciąga obie kolumny */
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.about-text {
    flex: 1;
    min-width: 280px;
    padding: 1.5rem;
}

.service-description {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.stars {
    color: var(--google-yellow);
    margin-right: 0.8rem;
}

.stars i {
    font-size: 1.1rem;
}

.rating-info {
    display: flex;
    align-items: center;
}

.rating-value {
    font-weight: 700;
    font-size: 1rem;
    margin-right: 0.4rem;
}

.reviews-count-link {
    color: var(--google-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.reviews-count-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.reviews-count-link i {
    font-size: 0.8rem;
    margin-left: 0.2rem;
}

.about-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
}

.about-image {
    flex: 1;
    min-width: 280px;
    height: 100%;
}

.image-placeholder {
    width: 100%; /* Wypełnia całą szerokość */
    height: 100%; /* Wypełnia całą wysokość */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
}

#mainphoto {
    width: 80%;
    height: 100%;
    border-radius: 5px;
}

/* Sekcja Godziny otwarcia */
.hours-content {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.hours-toggle {
    margin-bottom: 0.8rem;
}

.toggle-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-btn:hover {
    background-color: #1a4a8f;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.hours-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
    margin-bottom: 0;
}

.hours-list.expanded {
    max-height: 400px;
    opacity: 1;
    margin-bottom: 1.2rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.hour-item:last-child {
    border-bottom: none;
}

.day {
    font-weight: 500;
    font-size: 0.9rem;
}

.time {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.hour-item.closed .time {
    color: var(--accent-color);
}

.hours-note {
    background-color: #e7f1ff;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--secondary-color);
    font-size: 0.85rem;
}

.hours-note i {
    color: var(--secondary-color);
    margin-right: 0.4rem;
}

/* Sekcja Opinie */
.reviews-section {
    position: relative;
}

.add-review-link {
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-add-review {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--google-blue), var(--google-green));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 3px 6px rgba(66, 133, 244, 0.2);
    font-size: 0.9rem;
}

.btn-add-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(66, 133, 244, 0.3);
    color: white;
}

.btn-add-review i {
    margin-right: 0.5rem;
    color: var(--google-yellow);
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Karty opinii Google */
.google-review-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.2rem;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--google-blue);
    transition: var(--transition);
}

.google-review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.google-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.google-reviewer {
    display: flex;
    align-items: center;
    flex: 1;
}

.google-reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    overflow: hidden;
    flex-shrink: 0;
}

.google-reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.google-reviewer-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.google-review-time {
    color: var(--gray-color);
    font-size: 0.8rem;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.google-review-stars {
    color: var(--google-yellow);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.google-review-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
}

.google-more-reviews {
    text-align: center;
    margin-top: 1.5rem;
    grid-column: 1 / -1;
}

.google-more-reviews a {
    color: var(--google-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.google-more-reviews a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.google-more-reviews i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

/* Statyczne opinie */
.review-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.2rem;
    transition: var(--transition);
    border: 1px solid #f1f1f1;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.reviewer-avatar i {
    font-size: 1.2rem;
    color: var(--gray-color);
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.review-stars {
    color: var(--google-yellow);
    font-size: 0.8rem;
}

.review-date {
    color: var(--gray-color);
    font-size: 0.8rem;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.review-text {
    font-style: italic;
    color: #495057;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Stopka */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 1.8rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.map-container {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-info {
    padding: 1rem;
    background-color: white;
    color: var(--dark-color);
}

.map-info p {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.map-info i {
    color: var(--secondary-color);
    margin-right: 0.6rem;
    font-size: 1rem;
}

.map-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.map-link:hover {
    color: var(--primary-color);
}

.map-link i {
    margin-left: 0.4rem;
    font-size: 0.8rem;
}

/* ========== FORMULARZ - POPRAWIONE STYLE ========== */

/* Bazowe style dla formularzy */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

/* LABELKI W STOPCE - BIAŁY TEKST */
.footer .form-label {
    color: white !important;
}

/* INPUTY W STOPCE - BIAŁE TŁO, CIEMNY TEKST */
.footer .form-input,
.footer .form-textarea {
    background-color: white !important;
    color: #333 !important;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    padding: 0.8rem 1rem;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Placeholder w stopce - szary */
.footer .form-input::placeholder,
.footer .form-textarea::placeholder {
    color: #777 !important;
    opacity: 1;
}

/* Fokus w stopce */
.footer .form-input:focus,
.footer .form-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(45, 90, 160, 0.2);
    background-color: white !important;
    color: #111 !important;
}

/* Tekst po wpisaniu w stopce - NIEBIESKI */
.footer .form-input:not(:placeholder-shown),
.footer .form-textarea:not(:placeholder-shown) {
    color: var(--primary-color) !important;
    font-weight: 500;
}

/* Textarea specific */
.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

/* Error messages */
.error-message {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--accent-color);
    min-height: 1.2rem;
}

/* Błędy w stopce */
.footer .error-message {
    color: #ff6b6b !important;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.3rem 0.5rem;
    border-radius: 3px;
    margin-top: 0.3rem;
}

/* Submit button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), #1a4a8f);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(45, 90, 160, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(45, 90, 160, 0.25);
    background: linear-gradient(135deg, #1a4a8f, var(--secondary-color));
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    margin-left: 0.5rem;
}

/* Form message */
.form-message {
    margin-top: 1.2rem;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    font-size: 0.9rem;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Kontener formularza w stopce */
.footer-section.form-section {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stopka dolna */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.copyright p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.footer-phone {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-phone:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-phone i {
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

/* Responsywność */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .phone-link {
        align-self: stretch;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .about-content, .footer-content {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hours-content {
        padding: 1.2rem;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    section {
        margin-bottom: 2rem;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn-add-review {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 1.3rem;
    }
    
    .service-description {
        font-size: 1.1rem;
    }
    
    .image-placeholder {
        height: 180px;
    }
    
    .image-placeholder i {
        font-size: 4rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Inputy na mobile */
    .footer .form-input,
    .footer .form-textarea {
        font-size: 16px; /* Zapobiega zoom na iOS */
        padding: 0.9rem;
    }
}

/* Animacje przy przewijaniu */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Styl dla błędnych pól */
.error {
    border-color: var(--accent-color) !important;
    background-color: #fff8f8 !important;
}

/* Klasa dla pól które mają tekst */
.form-input.has-text,
.form-textarea.has-text {
    color: var(--primary-color) !important;
    font-weight: 500;
}

/* Klasa dla pól które mają tekst */
.form-input.has-text,
.form-textarea.has-text {
    color: var(--primary-color) !important;
    font-weight: 500;
}

/* Loading spinner w przycisku */
.fa-spinner {
    margin-right: 8px;
}

/* Ukryte pole botcheck */
.hidden {
    display: none !important;
}