* {
    box-sizing: border-box;
}

:root {
    --primary: #0f2f4a;
    --primary-light: #1f5f8b;
    --accent: #00a6c8;
    --text: #102a43;
    --muted: #627d98;
    --white: #ffffff;
    --border: rgba(255, 255, 255, 0.35);
    --shadow: 0 24px 70px rgba(15, 47, 74, 0.22);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #0f2f4a;
}

.page-bg {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 47, 74, 0.94), rgba(31, 95, 139, 0.78)),
        url("../img/background.jpg") center/cover no-repeat;
    z-index: -2;
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(0, 166, 200, 0.35), transparent 35%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.16), transparent 30%);
    z-index: -1;
}

.formularios-home {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 28px 22px 60px;
}

.topbar {
    display: flex;
    justify-content: center;
    margin-bottom: 46px;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 14px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
}

.logo {
    display: block;
    object-fit: contain;
}

.logo-innpack {
    height: 42px;
    max-width: 160px;
}

.logo-faret {
    height: 54px;
    max-width: 150px;
}

.brand-divider {
    width: 1px;
    height: 46px;
    background: #d9e2ec;
}

.hero {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
    color: var(--white);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero p {
    margin: 18px auto 0;
    max-width: 620px;
    font-size: clamp(16px, 2.6vw, 20px);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
}

.formularios-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 22px;
}

.panel-header h2 {
    margin: 0;
    font-size: 26px;
    color: var(--primary);
}

.panel-header p {
    margin: 6px 0 0;
    color: var(--muted);
}

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

.formulario-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 150px;
    padding: 24px;
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid #e5eaf0;
    box-shadow: 0 14px 34px rgba(15, 47, 74, 0.12);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.formulario-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--accent), var(--primary-light));
}

.formulario-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(15, 47, 74, 0.18);
}

.card-icon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 30px;
    background: #eef8fb;
    border: 1px solid #d6edf3;
}

.card-content {
    flex: 1;
}

.card-status {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #057a55;
    background: #dff8ec;
}

.card-content h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.18;
    color: var(--primary);
}

.card-content p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.card-arrow {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary-light);
    font-size: 24px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .formularios-home {
        padding: 20px 14px 40px;
    }

    .topbar {
        margin-bottom: 34px;
    }

    .brand-box {
        width: 100%;
        justify-content: center;
        gap: 14px;
        padding: 12px 14px;
        border-radius: 18px;
    }

    .logo-innpack {
        height: 34px;
        max-width: 130px;
    }

    .logo-faret {
        height: 44px;
        max-width: 118px;
    }

    .brand-divider {
        height: 38px;
    }

    .hero {
        margin-bottom: 26px;
    }

    .formularios-panel {
        padding: 20px;
        border-radius: 24px;
    }

    .panel-header h2 {
        font-size: 22px;
    }

    .formulario-card {
        min-height: auto;
        padding: 20px;
        align-items: flex-start;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .card-arrow {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }
}

.form-page {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 28px 22px 70px;
}

.form-topbar {
    margin-bottom: 30px;
}

.form-shell {
    max-width: 980px;
    margin: 0 auto;
}

.form-header {
    color: #ffffff;
    margin-bottom: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    opacity: 0.9;
}

.back-link:hover {
    opacity: 1;
}

.eyebrow.dark {
    color: #ffffff;
}

.form-header h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.form-header p {
    max-width: 720px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    line-height: 1.5;
}

.inspection-form {
    display: grid;
    gap: 22px;
}

.form-card {
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px);
}

.form-card h2 {
    margin: 0 0 18px;
    color: var(--primary);
    font-size: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.field {
    display: grid;
    gap: 7px;
}

.field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: 0.2s ease;
}

.field textarea {
    resize: vertical;
    min-height: 48px;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 166, 200, 0.12);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.primary-button {
    border: 0;
    cursor: pointer;
    padding: 16px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 18px 34px rgba(0, 166, 200, 0.25);
    transition: 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(0, 166, 200, 0.34);
}

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

@media (max-width: 640px) {
    .form-page {
        padding: 20px 14px 50px;
    }

    .form-card {
        padding: 20px;
        border-radius: 24px;
    }

    .form-header h1 {
        font-size: 34px;
    }

    .form-header p {
        font-size: 15px;
    }

    .form-actions {
        display: block;
    }

    .primary-button {
        width: 100%;
    }
}

.alert-success {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.28);
    backdrop-filter: blur(10px);
    color: #ffffff;
}

.alert-success-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #10b981;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.alert-success strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.alert-success p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.84);
}

@media (max-width: 640px) {
    .alert-success {
        align-items: flex-start;
        padding: 16px;
    }

    .alert-success-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}
