* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #0a0d12;
    color: #f4f7fa;
    font-family: Arial, Helvetica, sans-serif;
}

header {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    border-bottom: 1px solid #222a35;
    background: #0a0d12;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span,
.hero h1 span,
.section-label {
    color: #22c7ff;
}

nav a {
    color: #cbd5df;
    text-decoration: none;
    margin-left: 28px;
    font-size: 14px;
}

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 80px 8%;
    background:
        radial-gradient(circle at 80% 40%, #123145 0%, transparent 35%),
        #0a0d12;
}

.hero-content {
    max-width: 850px;
}

.eyebrow,
.section-label {
    letter-spacing: 4px;
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    margin: 15px 0;
    font-size: clamp(58px, 9vw, 110px);
    line-height: .9;
    letter-spacing: -4px;
}

.hero-text {
    max-width: 650px;
    color: #aeb9c4;
    font-size: 20px;
    line-height: 1.6;
}

.buttons {
    margin-top: 38px;
}

.buttons a {
    display: inline-block;
    padding: 15px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    margin-right: 10px;
}

.primary {
    background: #22c7ff;
    color: #031018;
}

.secondary {
    border: 1px solid #44515f;
    color: #fff;
}

.section {
    padding: 90px 8%;
}

.section h2 {
    max-width: 800px;
    font-size: clamp(34px, 5vw, 55px);
    margin: 12px 0 40px;
}

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

.cards article {
    background: #111720;
    border: 1px solid #202b37;
    border-radius: 8px;
    padding: 32px;
}

.cards h3 {
    margin-top: 0;
    font-size: 23px;
}

.cards p,
.wide-text,
.contact p {
    color: #aeb9c4;
    line-height: 1.7;
}

.alternate {
    background: #0d1219;
}

.wide-text {
    max-width: 850px;
    font-size: 19px;
}

.contact {
    text-align: center;
}

.contact h2 {
    margin-left: auto;
    margin-right: auto;
}

footer {
    border-top: 1px solid #202832;
    padding: 30px 8%;
    color: #71808f;
    font-size: 13px;
}

@media (max-width: 750px) {

    header {
        padding: 0 5%;
    }

    nav {
        display: none;
    }

    .hero {
        min-height: 520px;
        padding: 60px 6%;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

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

    .section {
        padding: 65px 6%;
    }
}

.request-page {
    min-height: calc(100vh - 72px);
}

.request-wrap {
    width: min(850px, 88%);
    margin: 0 auto;
    padding: 80px 0 110px;
}

.request-wrap h1 {
    font-size: clamp(46px, 7vw, 78px);
    margin: 10px 0 20px;
    letter-spacing: -2px;
}

.request-intro {
    color: #aeb9c4;
    font-size: 18px;
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 45px;
}

.service-form {
    background: #111720;
    border: 1px solid #202b37;
    border-radius: 10px;
    padding: 35px;
}

.service-form label {
    display: block;
    margin: 20px 0 8px;
    font-size: 14px;
    font-weight: 700;
}

.service-form input,
.service-form select,
.service-form textarea {
    width: 100%;
    background: #0a0d12;
    border: 1px solid #34414f;
    border-radius: 5px;
    padding: 14px;
    color: #f4f7fa;
    font: inherit;
}

.service-form input:focus,
.service-form select:focus,
.service-form textarea:focus {
    outline: 2px solid #22c7ff;
    border-color: transparent;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.submit-button {
    margin-top: 28px;
    background: #22c7ff;
    color: #031018;
    border: 0;
    border-radius: 5px;
    padding: 15px 24px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}

.form-note {
    color: #71808f;
    font-size: 12px;
    margin-top: 18px;
}

.success-message {
    background: #10251c;
    border: 1px solid #267a50;
    padding: 18px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.error-message {
    background: #2b1315;
    border: 1px solid #8c353c;
    padding: 18px;
    border-radius: 6px;
    margin-bottom: 25px;
}

@media (max-width: 650px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .service-form {
        padding: 24px;
    }
}

.admin-wrap {
    max-width: 1100px;
}

.admin-request {
    background: #111720;
    border: 1px solid #202b37;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 24px;
}

.admin-request-head {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.admin-request-head h2 {
    font-size: 30px;
    margin: 5px 0 0;
}

.request-number,
.admin-label {
    color: #71808f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 28px;
}

.admin-grid p {
    margin: 6px 0 14px;
}

.problem-box {
    background: #0a0d12;
    border: 1px solid #202b37;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0 25px;
}

.problem-box p {
    line-height: 1.6;
    margin-bottom: 0;
}

.status-badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    background: #24303c;
}

.status-new {
    color: #22c7ff;
}

.status-contacted {
    color: #e0c35a;
}

.status-scheduled {
    color: #a68cff;
}

.status-in-progress {
    color: #ff9f43;
}

.status-complete {
    color: #57d68d;
}

.status-closed {
    color: #8996a3;
}

.admin-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}

.status-form {
    display: flex;
    gap: 10px;
}

.status-form select {
    background: #0a0d12;
    border: 1px solid #34414f;
    color: #fff;
    border-radius: 5px;
    padding: 11px;
}

.save-button,
.admin-top-button {
    background: #22c7ff;
    color: #031018;
    border: 0;
    border-radius: 5px;
    padding: 11px 16px;
    font-weight: 800;
    cursor: pointer;
}

.admin-top-button {
    margin: 0;
}

.delete-button {
    background: transparent;
    border: 1px solid #7b3439;
    color: #e56b73;
    border-radius: 5px;
    padding: 11px 16px;
    font-weight: 700;
    cursor: pointer;
}

.empty-state {
    background: #111720;
    border: 1px solid #202b37;
    border-radius: 10px;
    padding: 50px;
    text-align: center;
    color: #aeb9c4;
}

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

    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .status-form {
        flex-direction: column;
    }

    .admin-request-head {
        flex-direction: column;
    }
}

.ticket-link {
    display: inline-block;
    color: #22c7ff;
    text-decoration: none;
    font-weight: 800;
    margin: 4px 0 18px;
}

.ticket-link:hover {
    text-decoration: underline;
}

.ticket-note {
    background: #0a0d12;
    border-left: 3px solid #22c7ff;
    padding: 15px 18px;
    margin-top: 16px;
    border-radius: 4px;
}

.ticket-note p {
    white-space: pre-wrap;
    line-height: 1.6;
    margin: 0 0 10px;
}

.ticket-note span,
.history-row small {
    color: #71808f;
    font-size: 12px;
}

.history-row {
    border-bottom: 1px solid #202b37;
    padding: 15px 0;
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 20px;
    align-items: center;
}

.admin-request textarea {
    width: 100%;
    background: #0a0d12;
    border: 1px solid #34414f;
    border-radius: 5px;
    padding: 14px;
    color: #f4f7fa;
    font: inherit;
    resize: vertical;
}

@media (max-width: 700px) {
    .history-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

.estimate-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.estimate-total {
    color: #22c7ff;
    font-size: 30px;
    font-weight: 800;
    margin: 5px 0;
}

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

.estimate-form label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin: 15px 0 7px;
}

.estimate-form input,
.estimate-form textarea,
.approval-link-box input {
    width: 100%;
    background: #0a0d12;
    border: 1px solid #34414f;
    border-radius: 5px;
    padding: 13px;
    color: #f4f7fa;
    font: inherit;
}

.approval-link-box {
    background: #0a0d12;
    border: 1px solid #202b37;
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
}

.approval-link-box input {
    margin: 9px 0 12px;
}

.estimate-page {
    min-height: calc(100vh - 72px);
}

.estimate-customer {
    width: min(760px, 90%);
    margin: 0 auto;
    padding: 80px 0 100px;
}

.estimate-customer h1 {
    font-size: clamp(42px, 7vw, 70px);
    margin: 10px 0;
}

.customer-estimate-card {
    background: #111720;
    border: 1px solid #202b37;
    border-radius: 10px;
    padding: 35px;
}

.estimate-device {
    padding-bottom: 20px;
    border-bottom: 1px solid #202b37;
}

.estimate-lines {
    margin-top: 20px;
}

.estimate-lines > div {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid #202b37;
}

.estimate-final {
    font-size: 22px;
    color: #22c7ff;
}

.estimate-description {
    margin-top: 30px;
    background: #0a0d12;
    padding: 20px;
    border-radius: 6px;
}

.estimate-description p {
    white-space: pre-wrap;
    line-height: 1.6;
}

.estimate-authorization {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #202b37;
    color: #aeb9c4;
    line-height: 1.6;
}

.approval-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.approve-button {
    background: #22c7ff;
    color: #031018;
    border: 0;
    border-radius: 5px;
    padding: 15px 22px;
    font-weight: 800;
    cursor: pointer;
}

.decline-button {
    background: transparent;
    color: #e56b73;
    border: 1px solid #7b3439;
    border-radius: 5px;
    padding: 15px 22px;
    font-weight: 800;
    cursor: pointer;
}

.estimate-result {
    margin-top: 30px;
    padding: 25px;
    border-radius: 6px;
}

.approved-result {
    background: #10251c;
    border: 1px solid #267a50;
}

.declined-result {
    background: #2b1315;
    border: 1px solid #8c353c;
}

.estimate-footer-note {
    color: #71808f;
    text-align: center;
    font-size: 13px;
    margin-top: 25px;
}

@media (max-width: 650px) {

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

    .approval-buttons {
        flex-direction: column;
    }

    .customer-estimate-card {
        padding: 24px;
    }

}
