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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-color: #667eea;
    --text-dark: #1a1a2e;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-image: url('k2.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Overlay dla lepszej czytelności */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    pointer-events: none;
}

/* Logo na górze strony */
.top-logo {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.top-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.top-logo-img {
    max-height: 100px;
    width: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 650px;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 50px 45px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.content:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

h1 {
    color: var(--text-dark);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.text-section {
    margin-bottom: 35px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

.text-section p {
    margin-bottom: 12px;
}

.text-section p:last-child {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 17px;
}

.google-maps-text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 17px;
}

.google-maps-text.hidden {
    display: none;
}

.stars-section {
    margin-bottom: 35px;
}

.stars-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
}

.star {
    font-size: 52px;
    color: #e0e0e0;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
}

.star::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    color: #fbbc04;
    opacity: 0;
    transition: var(--transition);
}

.star:hover {
    transform: scale(1.15) rotate(5deg);
    color: #fbbc04;
}

.star:hover::before {
    opacity: 0.3;
}

.star.active {
    color: #fbbc04;
    transform: scale(1.1);
}

.star.active::before {
    opacity: 0.5;
}

.star.selected {
    color: #fbbc04;
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(251, 188, 4, 0.4));
}

.star.selected::before {
    opacity: 1;
}

.rating-text {
    color: var(--text-light);
    font-size: 15px;
    margin-top: 15px;
    font-weight: 500;
}

.form-section {
    margin-top: 35px;
    text-align: left;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 26px;
    font-weight: 700;
}

.form-section p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* Pole telefonu z kodem kraju */
.phone-input-group {
    display: flex;
    gap: 10px;
}

/* Custom select wrapper */
.custom-select-wrapper {
    position: relative;
    flex: 0 0 160px;
    min-width: 160px;
}

/* Responsywność dla mobilnych */
@media (max-width: 600px) {
    .custom-select-wrapper {
        flex: 0 0 120px;
        min-width: 120px;
    }
    
    .country-select {
        padding: 14px 12px;
        padding-left: 35px;
        padding-right: 35px;
        font-size: 14px;
    }
    
    .custom-select-wrapper::before {
        left: 12px;
        width: 18px;
        height: 13px;
    }
    
    .custom-select-wrapper::after {
        left: 32px;
        font-size: 14px;
    }
    
    .custom-select-arrow {
        right: 12px;
        font-size: 10px;
    }
}

.country-select {
    width: 100%;
    padding: 14px 16px;
    padding-left: 40px;
    padding-right: 40px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: none;
}

/* Ukryj emoji w zamkniętym selectie (pokazujemy obrazek flagi) */
.country-select option {
    padding: 12px;
    display: flex;
    align-items: center;
}

/* W rozwiniętym selectie emoji będą widoczne */

.country-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.country-select option {
    padding: 12px;
    display: flex;
    align-items: center;
}

/* Flaga w select */
.custom-select-wrapper::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Ukryj emoji w zamkniętym selectie - pokaż tylko kod kraju przez ::after */
.country-select {
    color: transparent !important;
}

/* Pokaż tekst bez emoji przez ::after */
.custom-select-wrapper::after {
    content: attr(data-selected-text);
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-dark);
    font-size: 16px;
    z-index: 1;
    font-family: inherit;
}

/* W opcjach (dropdown) emoji pozostają widoczne - przywróć normalny kolor */
.country-select option {
    color: var(--text-dark) !important;
}

/* Strzałka selecta */
.custom-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-dark);
    font-size: 12px;
    z-index: 1;
    transition: var(--transition);
}

.country-select:focus + .custom-select-arrow {
    color: var(--accent-color);
}

.country-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.phone-input {
    flex: 1;
}

/* Stylowanie reCAPTCHA */
.form-group .g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.form-group .g-recaptcha > div {
    margin: 0 auto;
}

.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    transition: var(--transition);
    margin-bottom: 0;
}

.checkbox-label:hover {
    background: var(--bg-light);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-right: 12px;
    margin-top: 3px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
    accent-color: var(--accent-color);
}

.checkbox-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 400;
}

.checkbox-text a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: var(--transition);
}

.checkbox-text a:hover {
    color: #764ba2;
    text-decoration: none;
}

.checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.message {
    margin-top: 25px;
    padding: 16px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
    animation: slideIn 0.3s ease;
}

.message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b8dacc;
}

.message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f1b0b7;
}

/* Responsywność */
@media (max-width: 600px) {
    .top-logo {
        top: 10px;
        padding: 10px 20px;
    }
    
    .top-logo-img {
        /*max-height: 40px;*/
    }
    
    .container {
        margin-top: 70px;
    }
    
    .content {
        padding: 35px 25px;
        border-radius: 12px;
    }

    h1 {
        font-size: 26px;
    }

    .star {
        font-size: 44px;
    }

    .stars-container {
        gap: 6px;
        padding: 15px;
    }

    .form-section h2 {
        font-size: 22px;
    }
}

/* Dodatkowe efekty */
@media (prefers-reduced-motion: no-preference) {
    .content {
        animation: fadeInUp 0.6s ease;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
