/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Body and background styles */
body {
    background-image:url('img/background.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    color: #fff;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Navigation styles */
nav {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #4CAF50;
}

/* Content box styles */
.content-box {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.content-box h1 {
    margin-bottom: 20px;
    color: #222;
}

.content-box p {
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Button styles */
.cta-button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-decoration: none; /* Removes underline from links */
}

.cta-button:hover {
    background-color: #45a049;
}

.component-container {
    max-width: 1400px;
    margin: 0 auto;
}

.component {
    display: flex;
    margin-bottom: 40px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.component-image {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;

    display: flex;
    justify-content: center; /* horizontal centering */
    align-items: center;     /* vertical centering */
}

.component-image img {
    width: auto;
    height: auto;
    max-height: 400px;
    max-width: 90%;
    min-width: 50%;
    object-fit: fill;
    display: block;
}

.component-content {
    flex: 1;
    padding: 30px;
}

.component-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.component-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.component-features {
    margin-top: 20px;
}

.component-features li {
    margin-bottom: 8px;
    list-style-type: none;
    position: relative;
    padding-left: 25px;
}

.component-features li:before {
    content: "✓";
    color: #4CAF50;
    position: absolute;
    left: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .component {
        flex-direction: column;
    }
    
    .component-image {
        flex: 0 0 auto;
        height: 250px;
    }
}

.form-box {
    max-width: 650px;
    margin: 60px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}

.form-box h1 {
    text-align: center;
    margin-bottom: 35px;
    font-size: 30px;
    font-weight: 700;
    color: #222;
}

fieldset {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    background: #fafafa;
}

legend {
    font-weight: bold;
    font-size: 18px;
    color: #333;
    padding: 0 12px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 15px;
}

input, select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 22px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #fdfdfd;
    transition: border-color 0.3s, background 0.3s;
}

input:focus, select:focus {
    border-color: #4CAF50;
    background: #fff;
    outline: none;
    box-shadow: 0 0 8px rgba(76,175,80,0.25);
}

button.cta-button {
    display: block;
    width: 100%;
    font-size: 18px;
    padding: 16px;
    border-radius: 10px;
    margin-top: 10px;
    font-weight: 600;
}

.confirmation_box {
    background-color: #d4edda; /* jasnozielone tło */
    color: #155724;            /* ciemnozielony tekst */
    font-size: 1.5rem;         /* większy tekst */
    font-weight: bold;          /* pogrubienie */
    text-align: center;         /* wyśrodkowanie */
    padding: 15px 20px;         /* odstępy wewnętrzne */
    border: 2px solid #c3e6cb; /* ciemniejsze zielone obramowanie */
    border-radius: 8px;         /* zaokrąglone rogi */
    margin: 20px auto;          /* odstęp od reszty i wyśrodkowanie */
    max-width: 600px;           /* opcjonalnie, żeby nie zajmowało całej szerokości */
}

.opinions-page .component {
    border-left: 6px solid #4CAF50;
    background-color: #ffffff;
}

.opinions-page .component-content {
    padding: 35px 40px;
}

.opinions-page .component-description {
    font-size: 17px;
    line-height: 1.75;
    color: #444;
    position: relative;
    padding-left: 28px;
}

/* quote mark */
.opinions-page .component-description::before {
    content: "“";
    position: absolute;
    left: 0;
    top: -12px;
    font-size: 42px;
    color: #4CAF50;
    font-family: Georgia, serif;
}

/* subtle hover, only here */
.opinions-page .component:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* spacing */
.opinions-page .component-container {
    margin-top: 40px;
}

/* mobile tuning */
@media (max-width: 768px) {
    .opinions-page .component-content {
        padding: 24px;
    }

    .opinions-page .component-description {
        font-size: 16px;
    }
}
