/* Global Styles */
:root {
    --primary-color: #d4213d; /* Polish red */
    --secondary-color: #005bbb; /* Ukrainian blue */
    --accent-color: #ffd700; /* Ukrainian yellow */
    --dark-color: #333;
    --light-color: #f8f9fa;
    --gray-color: #e9ecef;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --error-color: #dc3545;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Switching */
.lang {
    display: none;
}

.lang.active {
    display: block;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 70px;
    margin-right: 20px;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.logo-text h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin: 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: var(--gray-color);
}

.lang-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Main Content */
main {
    padding: 50px 0;
}

.info-section {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.info-section ul {
    margin-left: 20px;
    margin-top: 15px;
}

.info-section li {
    margin-bottom: 10px;
}

/* Form Styles */
.form-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 33, 61, 0.2);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-actions {
    margin-top: 30px;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #b51b33;
}

/* Additional Info Section */
.additional-info {
    padding: 50px 0;
    background-color: var(--gray-color);
}

.additional-info .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-box {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
}

.copyright {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lang-switch {
        margin-top: 15px;
        align-self: flex-end;
    }
    
    .logo-container {
        margin-bottom: 10px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .form-container, .info-section, .info-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text h2 {
        font-size: 1rem;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* Message Styles */
#message-container {
    margin: 20px 0;
    width: 100%;
}

.message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    animation: fade-in 0.3s ease-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.message::before {
    font-family: sans-serif;
    margin-right: 10px;
    font-size: 1.2rem;
}

.message.success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.message.success::before {
    content: '✓';
}

.message.error {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--error-color);
    color: var(--error-color);
}

.message.error::before {
    content: '⚠';
}

.message.fade-out {
    animation: fade-out 0.5s ease-out forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
