@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS Variables (Theme Palettes) --- */
:root {
    /* Brand Colors */
    --brand-blue: #064CAD;
    --brand-blue-dark: #0a4099;
    --brand-blue-light: #0d51be;
    
    /* Layout & Surface Colors */
    --bg-body: #f2f2f2;
    --bg-surface: #ffffff;
    --text-primary: #333333;
    --text-secondary: #8da4c4;
    --text-light: #ffffff;
    --text-label-blue: #e0e9f8;
    
    /* Input & Interactive Colors */
    --icon-muted: #7b9cc4;
    --border-radius-card: 30px;
    --border-radius-input: 8px;
    
    /* Status Colors */
    --color-error: #dc3545;
    --color-error-light: #ffb3b3;
    --color-error-border: #ff6b6b;
    --color-warning: #ffc107;
    --color-success: #198754;
    --color-blue-700: #04367B;
}

/* --- Base & Typography --- */
body, 
button, 
input, 
select, 
textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
}

/* --- Layout Container --- */
.mobile-wrapper {
    max-width: 640px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: var(--bg-surface);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.header-section {
    padding: 40px 24px 20px 24px;
    background-color: var(--bg-surface);
}

.blue-card {
    background-color: var(--brand-blue);
    border-top-left-radius: var(--border-radius-card);
    border-top-right-radius: var(--border-radius-card);
    padding: 32px 24px 40px 24px;
    flex-grow: 1;
    color: var(--text-light);
}

/* --- Shared Form Controls --- */
.form-label-custom {
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--text-label-blue);
    font-weight: 500;
}

.input-group-custom {
    position: relative;
    margin-bottom: 20px;
}

.form-control-custom {
    height: 48px;
    border-radius: var(--border-radius-input) !important;
    border: none;
    padding-left: 16px;
    padding-right: 42px;
    font-size: 0.95rem;
    font-weight: 400;
}

.form-control-custom:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.input-icon-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--icon-muted);
    z-index: 10;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-custom-white {
    background-color: var(--bg-surface);
    color: var(--brand-blue);
    font-weight: 600;
    height: 48px;
    border-radius: var(--border-radius-input);
    border: none;
    letter-spacing: 0.5px;
    width: 100%;
    transition: all 0.2s ease;
}

.btn-custom-white:hover {
    background-color: #f0f4f9;
    color: var(--brand-blue-dark);
}

.link-light-custom {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
}

.link-light-custom:hover {
    text-decoration: underline;
}

/* --- Shared Modal Response Notification --- */
#appResponseModal .modal-dialog {
    max-width: 320px;
    transform: translateY(-100px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

#appResponseModal.show .modal-dialog {
    transform: translateY(0) !important;
}

.custom-response-card {
    border-radius: 20px !important;
    background-color: var(--bg-surface);
}

.modal-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.bg-icon-error {
    background-color: var(--color-error);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.bg-icon-warning {
    background-color: var(--color-warning);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.bg-icon-success {
    background-color: var(--color-success);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.btn-custom-action {
    background-color: var(--brand-blue);
    color: var(--text-light);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-custom-action:hover {
    background-color: var(--brand-blue-dark);
    color: var(--text-light);
}

/* --- Shared Validation Errors --- */
label.error {
    color: var(--color-error-light);
    font-size: 0.78rem;
    margin-top: 4px;
    display: block;
    font-weight: 400;
}

.form-control-custom.error {
    border: 1.5px solid var(--color-error-border);
}