body {
    padding-bottom: 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Content padding - adjusted for navbar */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Form Controls - Remove max-width restriction for modern responsive design */
input,
select,
textarea {
    max-width: 100%;
}

/* Form Control Styling - Matching site-wide theme */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    background: #fafafa;
    color: #5a5a5a;
    transition: all 0.3s ease;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #d2b48c;
    background: white;
    box-shadow: 0 0 0 4px rgba(210, 180, 140, 0.1);
}

/* Checkbox Styling */
input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #d2b48c;
}

/* Validation Styles - Updated colors */
.field-validation-error {
    color: #d84315;
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-top: 0.25rem;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
    border: 2px solid #f44336;
    background: rgba(255, 204, 188, 0.1);
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
    outline: 2px solid #f44336;
}

.validation-summary-errors {
    color: #d84315;
    background: linear-gradient(135deg, #ffccbc, #ffab91);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border-left: 4px solid #f44336;
    margin-bottom: 1.5rem;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.25rem;
}

.validation-summary-valid {
    display: none;
}

/* Button Styles - Matching site theme */
.btn-primary {
    background: linear-gradient(135deg, #d2b48c, #c4a77d);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(210, 180, 140, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c4a77d, #b8976b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 180, 140, 0.4);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
}

/* Outline Button */
.btn-outline-primary {
    background: transparent;
    color: #d2b48c;
    border: 2px solid #d2b48c;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #d2b48c;
    color: white;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 4px solid #d2b48c;
}

.card-header {
    background: transparent;
    border-bottom: 2px solid #f0f0f0;
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Alert Styles - Updated to match theme */
.alert {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: none;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-danger,
.alert-error {
    background: linear-gradient(135deg, #ffccbc, #ffab91);
    color: #d84315;
    border-left: 4px solid #f44336;
}

.alert-warning {
    background: linear-gradient(135deg, #ffe0b2, #ffcc80);
    color: #e65100;
    border-left: 4px solid #ffb74d;
}

.alert-info {
    background: linear-gradient(135deg, #d2b48c, #c4a77d);
    color: white;
    border-left: 4px solid #b8976b;
}

/* Text Colors */
.text-muted {
    color: #6c757d !important;
}

.text-danger {
    color: #d84315 !important;
}

.text-success {
    color: #2e7d32 !important;
}

.text-primary {
    color: #d2b48c !important;
}

/* Link Styles */
a {
    color: #d2b48c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #b8976b;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #5a5a5a;
    font-weight: 400;
}

/* Horizontal Rule */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d2b48c, transparent);
    margin: 2rem 0;
}

/* Table Styles (if needed) */
.table {
    color: #5a5a5a;
}

.table thead th {
    border-bottom: 2px solid #d2b48c;
    color: #5a5a5a;
    font-weight: 600;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(210, 180, 140, 0.05);
}

/* Utility Classes */
.bg-light {
    background-color: #fafafa !important;
}

.bg-white {
    background-color: white !important;
}

.border-primary {
    border-color: #d2b48c !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .body-content {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    input,
    select,
    textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Loading/Disabled States */
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #d2b48c;
    outline-offset: 2px;
}