/* =========================
   VARIABLES & GLOBAL STYLES
========================= */
:root {
    --navy: #143d6b;
    --blue: #2b6fb3;
    --muted: #f3f7fb;
    --card: #ffffff;
    --text: #0b1a2b;
    --radius: 14px;
    --maxw: 980px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--muted), #ffffff);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: var(--maxw);
    margin: 24px auto;
    padding: 20px;
}

.nowrap {
  white-space: nowrap;
}

/* =========================
   GLOBAL ELEMENTS
========================= */
h1 {
    margin: 0;
    font-size: 28px;
}

p.lead {
    margin: 8px 0 0;
    font-size: 18px;
    max-width: 52ch;
}

.btn {
    background: var(--navy);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn.secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid rgba(20, 61, 107, 0.15);
    box-shadow: none;
}

/* Ujednolicone nagłówki sekcji */
.section h2 {
    text-align: left;
    font-size: 2em;
    margin-bottom: 30px;
    color: #1a3d5d;
}

/* =========================
   HERO SECTION
========================= */
.hero {
    display: flex;
    gap: 24px;
    align-items: center;
    border-radius: var(--radius);
    padding: 28px;
    min-height: 420px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.6)),
        url('images/hero-bg.jpg') center/cover no-repeat;
    z-index: 0;
}

.hero>* {
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.logo .icon {
    width: 56px;
    height: 56px;
    background: rgba(20, 61, 107, 0.9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.signup {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.signup input[type=email] {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
}

.hero-left {
    flex: 1;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mockup {
    width: 220px;
    height: 450px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 40, 80, 0.35);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* =========================
   HOW IT WORKS
========================= */
.how {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.steps {
    flex: 1;
}

.step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
}

.ico {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.ico svg {
    width: 24px;
    height: 24px;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.how-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 1.05em;
    line-height: 1.5;
}

.how-item p {
    margin: 0;
}

/* =========================
   WHY SECTION
========================= */
#why {
    background-color: #f9f9f9;
    padding: 60px 0;
}

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

.why-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.why-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.why-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* =========================
   FOR WHO SECTION
========================= */
.for-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.for-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 1.05em;
    line-height: 1.5;
}

.for-item p {
    margin: 0;
}

/* =========================
   TRIP SUMMARY
========================= */
#trip-summary {
    background-color: #f8fbfd;
    padding: 60px 0px;
}

.trip-table {
    width: 100%;
    max-width: 500px;
    margin: 0;
    border-collapse: collapse;
    font-size: 1.05em;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.trip-table td {
    padding: 14px 18px;
}

.trip-table tr:nth-child(even):not(.total-row) {
    background-color: #eef6fb;
}

.trip-table tr:nth-child(odd):not(.total-row) {
    background-color: #ffffff;
}

.trip-table .time {
    text-align: right;
    font-weight: 500;
    color: #1a3d5d;
}

.trip-table td:first-child {
    color: #1a3d5d;
}

.trip-table .total-row {
    border-top: 2px solid #1a3d5d;
    background-color: #d9ebf5;
    font-weight: 700;
}

/* =========================
   CTA
========================= */
/* FEEDBACK / CTA SECTION */
#cta-feedback {
    background-color: var(--muted);
    padding: 0px 20px;
}

#cta-feedback h2 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 1.8rem;
}

#cta-feedback p {
    text-align: justify;
    max-width: 700px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
    color: var(--text);
}

/* Formularz feedbacku */
.feedback-form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feedback-form label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    color: var(--navy);
    font-size: 1rem;
}

.feedback-form input,
.feedback-form textarea,
.feedback-form select {
    margin-top: 6px;
    padding: 12px;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.feedback-form input:focus,
.feedback-form textarea:focus,
.feedback-form select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(43, 111, 179, 0.2);
}

.feedback-form button {
    align-self: flex-start;
}

/* Feedback form improvements */
.feedback-form label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    color: var(--navy);
    font-size: 1rem;
}

.feedback-form input[type="checkbox"] {
    margin-right: 8px;
}

.feedback-form div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.feedback-form div label {
    flex-direction: row;
    align-items: center;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text);
}

/* Zapobiega wychodzeniu pola "Inne" poza formularz */
.feedback-form input[type="text"][name="features_other"] {
  display: block;
  width: 100%;
  margin-left: 6px;
  margin-top: 6px; /* mały odstęp od checkboxa */
  box-sizing: border-box; /* uwzględnia padding i border w szerokości */
}

.feedback-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feedback-form .radio-inline {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.feedback-form .radio-inline label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: normal;
}

footer {
    margin-top: 28px;
    color: #6b7788;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-right {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 12px;
    }

    .mockup {
        width: 220px;
        height: 460px;
    }
}

@media (max-width: 768px) {
    .how-grid {
        grid-template-columns: 1fr;
    }

    .for-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: 22px;
    }

    .mockup {
        width: 180px;
        height: 380px;
    }
}