* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}

header {
    background: #064e3b;
    color: white;
    padding: 20px max(5%, 15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.brand {
    font-size: 21px;
    font-weight: bold;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

nav a:hover {
    color: #facc15;
}

main {
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
}

.container {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.left,
.right {
    flex: 1;
    min-width: 0;
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
}

h1 {
    font-size: 36px;
    line-height: 1.25;
    color: #064e3b;
    margin: 15px 0;
}

h2 {
    color: #064e3b;
    margin: 12px 0;
}

p {
    line-height: 1.6;
}

img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 12px;
}

.services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
    color: #166534;
    font-size: 15px;
}

.contact {
    display: flex;
    gap: 12px;
}

.contact a {
    flex: 1;
    padding: 15px 10px;
    text-decoration: none;
    text-align: center;
    color: white;
    font-weight: bold;
    border-radius: 8px;
}

.hotline {
    background: #dc2626;
}

.zalo {
    background: #0068ff;
}

.subtitle {
    color: #64748b;
    font-size: 14px;
}

label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

input,
select,
textarea {
    width: 100%;
    min-width: 0;
    padding: 11px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 7px;
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 12px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #16a34a;
    border-color: transparent;
}

textarea {
    height: 65px;
    resize: vertical;
}

.row {
    display: flex;
    gap: 12px;
}

.row > div {
    flex: 1;
    min-width: 0;
}

.privacy {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 12px;
}

button {
    width: 100%;
    background: #15803d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #166534;
}

button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

#message:empty {
    display: none;
}

#message {
    white-space: pre-line;
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    line-height: 1.6;
}

.success {
    background: #dcfce7;
    color: #166534;
}

.error {
    background: #fee2e2;
    color: #991b1b;
}

footer {
    background: #064e3b;
    color: white;
    padding: 20px;
    text-align: center;
}

footer p {
    margin: 8px 0 0;
}

@media (max-width: 768px) {

    header {
        justify-content: center;
        text-align: center;
    }

    nav {
        justify-content: center;
        gap: 15px;
    }

    .container {
        flex-direction: column;
    }

    .left,
    .right {
        width: 100%;
        padding: 20px;
    }

    h1 {
        font-size: 28px;
    }

    main {
        padding: 15px;
    }
}

@media (max-width: 380px) {
    .services,
    .row {
        display: block;
    }

    .services div {
        margin-bottom: 10px;
    }

    .contact {
        flex-direction: column;
    }
}