@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

@font-face {
    font-family: "ColumbiaSans";
    src: url("../assets/fonts/columbiasans-light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "ColumbiaSans";
    src: url("../assets/fonts/columbiasans-lightitalic.otf") format("opentype");
    font-weight: 300;
    font-style: italic;
}

:root {
    --bg: #f7f7f5;
    --card: #ffffff;
    --text: #2a2a2a;
    --muted: #6b6b6b;
    --border: #e0dfdb;
    --brand: #8c7750;
    /* gold-like */
    --brand-600: #6f5f3f;
    --error: #b00020;
    --radius: 16px;
    --space: 16px;
    --shadow: 0 2px 16px rgba(0, 0, 0, .06);
    --font: "Manrope", sans-serif;
}

* {
    box-sizing: border-box;
    font-family: var(--font);
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg) url('../assets/New Contact form Odity.JPG') no-repeat center center fixed;
    background-size: cover;
    color: var(--text);
    line-height: 1.4;
}

.page {
    max-width: 50%;
    margin: 0 auto;
    padding: 10px 0;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 28px;
}

.title {
    margin: 0 0 4px 0;
    font-size: 2rem;
    font-family: "ColumbiaSans", sans-serif;
    font-style: italic;
    color: #6e6346;
    letter-spacing: .5px;
}

.subtitle {
    margin: 0 0 20px 0;
    color: var(--muted);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

label {
    font-weight: 600;
    color: #3a3a3a;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

textarea {
    resize: vertical;
    min-height: 120px
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 25%, transparent);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 720px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.error {
    color: var(--error);
    font-size: .9rem;
    height: 0;
    overflow: hidden;
    transition: height 0.2s ease;
}

.error:not(:empty) {
    height: auto;
    min-height: 1.1rem;
    margin-top: 4px;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}

.btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    cursor: pointer;
}

.btn.primary {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}

.btn.primary:hover {
    background: color-mix(in oklab, var(--brand) 12%, white);
}

.btn[disabled] {
    opacity: .6;
    cursor: progress;
}

.form-status {
    color: var(--muted);
    font-size: .95rem;
    padding: 12px 16px;
    border-radius: 8px;
    min-height: 20px;
    font-weight: 600;
    transition: all .3s ease;
}

.form-status.error {
    background: #fef2f2;
    color: var(--error);
    border: 2px solid var(--error);
    box-shadow: 0 0 0 4px rgba(176, 0, 32, 0.1);
}

.form-status.success {
    background: #f0fdf4;
    color: #166534;
    border: 2px solid #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

/* File Upload Styles */
.file-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f9f9f7;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    position: relative;
}

.file-name {
    color: var(--text);
    font-weight: 500;
    flex: 1;
}

.file-size {
    color: var(--muted);
    font-size: 0.85rem;
}

.file-remove {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--error);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 8px;
    transition: all 0.2s;
    font-weight: 700;
}

.file-remove:hover {
    color: #8b0000;
    transform: scale(1.2);
}

.file-remove:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background: var(--bg);
    border-color: var(--brand);
}

@media (max-width: 1024px) {
    .page {
        max-width: 80%;
    }

    .form-row {
        margin-bottom: 10px;
    }
}

@media (max-width: 720px) {
    .page {
        max-width: 90%;
    }
}