/* Variables */
:root {
    --primary: #064e3b;
    --primary-light: #059669;
    --primary-bg: #f0fdf4;
    --accent: #9b5325;
    --bg-color: #f4f7f5;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --error: #dc2626;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.5;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-muted { color: var(--text-muted); }
.text-error { color: var(--error); }
.text-sm { font-size: 0.875rem; }
.font-bold { font-weight: bold; }

/* Container */
.container {
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Card */
.card {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    width: 100%;
}
.card-header img {
    width: 100%;
    height: auto;
    display: block;
}

.card-body {
    padding: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}
.form-row {
    display: flex;
    gap: 1rem;
}
.form-col {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}
.required {
    color: var(--error);
}

input[type="text"],
input[type="number"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: var(--white);
    font-size: 15px;
    transition: all 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Button */
.btn {
    display: inline-block;
    width: 100%;
    padding: 12px 16px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
    text-decoration: none;
}
.btn:hover {
    background-color: #7b421d;
}
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary-bg);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
}
.alert-success {
    background-color: var(--primary-bg);
    color: var(--primary);
    border: 1px solid var(--primary-light);
}
.alert-error {
    background-color: #fef2f2;
    color: var(--error);
    border: 1px solid #f87171;
}

/* Success Card */
.success-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .card-body {
        padding: 1.5rem;
    }
    .container {
        margin: 1rem auto;
    }
}

/* Print */
@media print {
    body { background-color: white; }
    .container { margin: 0; max-width: 100%; padding: 0; }
    .card { box-shadow: none; border: none; }
    .no-print { display: none !important; }
}

/* Error States */
.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}
.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}
.error-msg {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}
