:root {
    /* Color System */
    --primary-blue: #2D348F;
    --secondary-blue: #2A4A6D;
    --light-blue: #4A6A8D;
    --hover-blue: #2980b9;
    --accent-blue: #2D348F;
    --accent-red: #D32333;
    --gold: #D4AF37;

    /* Neutral Colors */
    --black: #000000;
    --dark-grey: #333333;
    --medium-grey: #666666;
    --light-grey: #999999;
    --white: #FFFFFF;
    --off-white: #F8F9FA;

    /* UI Colors */
    --border-color: #D9D9D9;
    --border-light: rgba(217, 217, 217, 0.35);
    --background-light: rgba(102, 98, 98, 0.24);
    --shadow-color: rgba(50, 50, 93, 0.25);
    --overlay-dark: rgba(0, 0, 0, 0.3);
    --overlay-darker: rgba(0, 0, 0, 0.8);

    /* Text Colors */
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --text-white: #FFFFFF;
    --text-white-transparent: rgba(255, 255, 255, 0.9);

    /* Background Colors */
    --card-background: #FFFFFF;
    --button-shadow: #2D348F;
    --gradient-light: #F4F4F4;
    --gradient-dark: #121212;

    /* Typography */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.2s ease-in-out;
    --transition-slow: 0.3s ease-in-out;
}

/* ===== BASE STYLES ===== */
.contact-container {
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--card-background);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
}

/* ===== TYPOGRAPHY ===== */
.header-text {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
    line-height: 1.3;
}

.form-label {
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-xs);
    color: var(--text-medium);
    font-size: 0.875rem;
    line-height: 1.4;
}

.char-count {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: right;
    margin-top: var(--spacing-xs);
    line-height: 1.4;
}

/* ===== FORM ELEMENTS ===== */
.form-control,
.form-select {
    border-radius: var(--border-radius-sm);
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-dark);
    font-size: 0.875rem;
    line-height: 1.5;
    transition: all var(--transition-normal);
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 1;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(45, 52, 143, 0.15);
    outline: none;
}

.form-control:hover,
.form-select:hover {
    border-color: var(--light-blue);
}

/* ===== BUTTONS ===== */
.btn-send {
    background-color: var(--accent-blue);
    color: var(--text-white);
    padding: 0.625rem 1.875rem;
    border-radius: var(--border-radius-sm);
    border: none;
    font-weight: var(--font-weight-medium);
    font-size: 0.875rem;
    line-height: 1.5;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-send:hover {
    background-color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(45, 52, 143, 0.3);
}

.btn-send:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(45, 52, 143, 0.3);
}

.btn-send:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(45, 52, 143, 0.25);
}

/* ===== LAYOUT & SPACING ===== */
.contact-container .row {
    margin-bottom: var(--spacing-md);
}

.contact-container .row:last-of-type {
    margin-bottom: var(--spacing-lg);
}

.contact-container .mb-3 {
    margin-bottom: var(--spacing-md) !important;
}

.contact-container .mb-3:last-of-type {
    margin-bottom: var(--spacing-lg) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .contact-container {
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-sm);
    }

    .header-text {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 576px) {
    .contact-container {
        padding: var(--spacing-md);
        margin: 0 var(--spacing-xs);
        border-radius: var(--border-radius-sm);
    }

    .header-text {
        font-size: 1.125rem;
        text-align: center;
    }

    .btn-send {
        width: 100%;
        padding: 0.75rem 1.875rem;
    }

    .contact-container .row {
        margin-bottom: var(--spacing-sm);
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .form-control,
    .form-select,
    .btn-send {
        transition: none;
    }

    .btn-send:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-control,
    .form-select {
        border-width: 2px;
    }

    .btn-send {
        border: 2px solid var(--black);
    }
}

/* ===== FOCUS VISIBILITY ===== */
.form-control:focus-visible,
.form-select:focus-visible,
.btn-send:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* ===== VALIDATION STATES ===== */
.form-control.is-valid {
    border-color: var(--success-color, #28a745);
}

.form-control.is-invalid {
    border-color: var(--accent-red);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(211, 35, 51, 0.15);
}

/* ===== PRINT STYLES ===== */
@media print {
    .contact-container {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }

    .btn-send {
        background-color: var(--text-dark) !important;
        color: var(--white) !important;
    }
}
