* {
    box-sizing: border-box;
}

:root {
    --green: #16a34a;
    --green-dark: #15803d;
    --orange: #f97316;
    --dark: #0f172a;
    --muted: #64748b;
    --border: #e5e7eb;
    --soft: #f8fafc;
    --white: #ffffff;
}

body.request-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: #f8fafc;
}

.request-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 16px calc(90px + env(safe-area-inset-bottom));
}

.request-topbar {
    position: sticky;
    top: 0;
    z-index: 1200;

    min-height: 64px;

    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(226,232,240,0.9);

    margin-bottom: 18px;
    padding: 10px 8px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow: 0 4px 18px rgba(15,23,42,0.05);
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 0;
    margin-right: 10px;
}

.back-link i {
    font-size: 1.15rem;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
   background: var(--green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-page {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--muted);
    margin-right: 8px;
}

.request-hero {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(226,232,240,0.92);
    border-radius: 28px;
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.request-hero-icon {
    width: 62px;
    height: 62px;
    border-radius: 22px;
    background: var(--green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex: 0 0 auto;
}

.request-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    color: var(--green-dark);
    border: 1px solid #bbf7d0;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.request-hero h1 {
    margin: 0 0 8px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.85rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.request-hero p {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
    line-height: 1.65;
}

.request-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.request-card,
.request-side-card {
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(226,232,240,0.95);
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 18px 48px rgba(15,23,42,0.08);
}

.form-section-title {
    margin-bottom: 20px;
}

.form-section-title h2 {
    margin: 0 0 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.form-section-title p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.request-form {
    display: grid;
    gap: 16px;
}

.request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

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

.field span {
    font-size: 0.9rem;
    font-weight: 900;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 15px 16px;
    font: inherit;
    font-weight: 650;
    background: #fff;
    outline: none;
}

.field input,
.field select {
    height: 56px;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 5px rgba(22,163,74,0.11);
}

.location-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 18px;
    display: grid;
    gap: 15px;
}

.location-box-top {
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.location-box-icon {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    background: #dcfce7;
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.location-box h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.location-box p {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
    line-height: 1.5;
}

.location-btn,
.submit-btn,
.secondary-btn {
    min-height: 56px;
    border-radius: 18px;
    font: inherit;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.location-btn {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: var(--green-dark);
}

.submit-btn {
    width: 100%;
    border: none;
    background: var(--green);
    color: white;
    box-shadow: 0 14px 30px rgba(22,163,74,0.24);
}

.secondary-btn {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--dark);
}

.request-actions {
    display: grid;
    gap: 12px;
}

.location-status {
    padding: 12px 14px;
    border-radius: 16px;
    background: white;
    color: var(--muted);
    font-weight: 750;
    font-size: 0.9rem;
    display: flex;
    gap: 8px;
    align-items: center;
}

.location-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.location-details div {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
}

.location-details span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.location-details strong {
    font-size: 0.82rem;
}

.request-alert {
    display: none;
    padding: 13px 15px;
    border-radius: 16px;
    font-weight: 850;
    font-size: 0.9rem;
}

.request-alert.show {
    display: block;
}

.request-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.request-alert.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.loading-box {
    color: var(--muted);
    font-weight: 800;
    display: flex;
    gap: 14px;
    align-items: center;
}

.loader-ring {
    width: 42px;
    height: 42px;
    border: 4px solid #dcfce7;
    border-top-color: var(--green);
    border-radius: 999px;
    animation: spin 0.85s linear infinite;
    flex: 0 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tech-preview-cover {
    height: 145px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 46px;
}

.tech-preview-avatar {
    position: absolute;
    left: 20px;
    bottom: -38px;
    width: 82px;
    height: 82px;
    border-radius: 26px;
    border: 5px solid white;
    background: #f1f5f9;
    object-fit: cover;
    box-shadow: 0 14px 30px rgba(15,23,42,0.18);
}

.preview-status {
    position: absolute;
    right: 14px;
    top: 14px;
    background: rgba(255,255,255,0.94);
    color: var(--green-dark);
    font-weight: 950;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
}

.preview-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.preview-service {
    margin-top: 7px;
    color: var(--green-dark);
    font-weight: 950;
}

.preview-meta-list {
    display: grid;
    gap: 10px;
    margin-top: 17px;
}

.preview-meta {
    color: var(--muted);
    font-weight: 750;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-meta i {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    background: #f1f5f9;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.preview-price {
    margin-top: 20px;
    padding: 18px;
    border-radius: 22px;
background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
    font-weight: 950;
    text-align: center;
}

.preview-price span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-bottom: 5px;
}

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

    .request-side-card {
        order: -1;
    }
}

@media (max-width: 640px) {
    .request-shell {
        padding: 12px 12px calc(130px + env(safe-area-inset-bottom));
    }

    .topbar-brand span:last-child {
        display: none;
    }

    .request-hero {
        border-radius: 24px;
        padding: 18px;
        align-items: flex-start;
    }

    .request-hero-icon {
        width: 52px;
        height: 52px;
        border-radius: 18px;
    }

    .request-card,
    .request-side-card {
        border-radius: 24px;
        padding: 18px;
    }

    .request-grid,
    .location-details {
        grid-template-columns: 1fr;
    }

    .request-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {

    .request-topbar {
        top: 0;
        left: 0;
        right: 0;

        border-radius: 0;
        border-left: none;
        border-right: none;

        margin-left: -12px;
        margin-right: -12px;

        padding-left: 14px;
        padding-right: 14px;
    }

}