/* Base styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #e3f2ec 0%, #f6f0e3 50%, #fbe0c9 100%);
    min-height: 100vh;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.wrapper {
    width: 100%;
    max-width: 1060px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    color: white;
}

h2 {
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 32px;
    color: #111;
}

h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}

p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #555;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #179e83;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Navbar Wrapper */
.navbar-wrapper {
    width: 100%;
    background: rgba(255, 255, 255, 0.45);
    display: flex;
    justify-content: center;
}

.navbar {
    width: 100%;
    max-width: 1060px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    width: 32px;
    height: 32px;
    background-color: #179e83;
    color: white;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.logo-text {
    font-size: 15px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 20px;
    transition: all 0.2s;
}

.nav-links a.active {
    background-color: #d8ede6;
    color: #179e83;
}

.nav-links a:hover:not(.active) {
    color: #111;
}

/* Top Card */
.top-card {
    background-color: #2a3236;
    border-radius: 24px;
    padding: 56px 64px;
    margin-top: 40px;
    margin-bottom: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.top-card .section-label.text-light {
    color: #8b9a9d;
}

.top-card p {
    color: #9aa6a8;
    font-size: 15px;
}

/* Bottom Container */
.bottom-container {
    display: flex;
    gap: 24px;
    margin-bottom: 80px;
}

/* Left & Right Cards */
.left-card, .right-card {
    background-color: #fdfbf8;
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.left-card {
    flex: 1.4;
}

.right-card {
    flex: 1;
}

/* Message List */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.message-content {
    flex: 1;
}

.time-badge {
    background-color: #eaf5f2;
    color: #2b7a78;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 12px 16px;
    border-radius: 24px;
    line-height: 1.3;
}

/* Form Styles */
.message-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
}

select, textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e8e6df;
    border-radius: 12px;
    font-size: 14px;
    color: #111;
    outline: none;
    background-color: #ffffff;
    font-family: inherit;
    transition: border-color 0.2s;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

select:focus, textarea:focus {
    border-color: #179e83;
}

textarea::placeholder {
    color: #999;
}

/* Custom Select Arrow */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Button */
.btn {
    width: 100%;
    padding: 16px;
    background-color: #1ca386;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #15876f;
}

/* Responsive Media Queries down to 300px */
@media (max-width: 900px) {
    .bottom-container {
        flex-direction: column;
    }
    .left-card, .right-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 28px;
    }
    .top-card {
        padding: 40px;
    }
    .left-card, .right-card {
        padding: 32px;
    }
    .navbar {
        flex-direction: column;
        gap: 16px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wrapper {
        padding: 0 16px;
    }
    h1 {
        font-size: 32px;
    }
    .top-card {
        padding: 24px;
        border-radius: 20px;
    }
    .left-card, .right-card {
        padding: 24px;
        border-radius: 24px;
    }
    .message-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
    .time-badge {
        align-self: flex-start;
        padding: 8px 16px;
        border-radius: 20px;
    }
    .time-badge br {
        display: none;
    }
}

@media (max-width: 320px) {
    .wrapper {
        padding: 0 10px;
    }
    h1 {
        font-size: 28px;
    }
    h2 {
        font-size: 24px;
    }
    .top-card {
        padding: 20px;
    }
    .nav-links {
        gap: 8px;
    }
    .nav-links a {
        padding: 8px 12px;
        font-size: 13px;
    }
    .message-card {
        padding: 16px;
    }
}
