/*
 * YCCUON Monitor Location Request Form Styles
 * Premium Theme Integration with rich aesthetics, smooth micro-interactions and glassmorphism.
 */

:root {
    --ycc-navy: #002663;
    --ycc-gold: #cfa025;
    --ycc-gold-hover: #b0851c;
    --ycc-teal: #19af64;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(226, 232, 240, 0.8);
    --shadow-premium: 0 10px 30px rgba(0, 38, 99, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Success Card styling */
.ma-success-card {
    max-width: 650px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.ma-success-header {
    background: var(--ycc-navy);
    padding: 35px 20px;
    text-align: center;
    color: #ffffff;
}

.ma-success-icon {
    display: inline-flex;
    width: 60px;
    height: 60px;
    background: var(--ycc-gold);
    color: #ffffff;
    font-size: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.ma-success-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.ma-success-body {
    padding: 40px 30px;
    line-height: 1.8;
    color: var(--text-main);
    font-size: 15px;
}

.ma-disclaimer-box {
    margin-top: 30px;
    background: var(--bg-light);
    border-left: 4px solid var(--ycc-gold);
    padding: 20px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Form Container Styling */
.ma-form-container {
    max-width: 800px;
    margin: 40px auto;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 45px 40px;
    box-shadow: var(--shadow-premium);
    font-family: "Poppins", sans-serif;
}

.ma-form-title {
    color: var(--ycc-navy);
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-align: center;
}

.ma-form-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    text-align: center;
    margin: 0 0 35px 0;
    line-height: 1.6;
}

/* Error Box */
.ma-error-box {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    color: #991b1b;
}
.ma-error-box ul { margin: 0; padding-left: 20px; }
.ma-error-box li { margin-bottom: 5px; font-size: 14px; font-weight: 500; }

/* Form Elements */
.ma-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 20px;
}

.ma-col-full {
    grid-column: span 2;
}

.ma-form-group {
    display: flex;
    flex-direction: column;
}

.ma-form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 8px;
}

.ma-form-group label .required {
    color: #ef4444;
}

.ma-form-group input[type="text"],
.ma-form-group input[type="email"],
.ma-form-group input[type="tel"],
.ma-form-group textarea,
.ma-form-group select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-main);
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.ma-form-group input:focus,
.ma-form-group textarea:focus,
.ma-form-group select:focus {
    border-color: var(--ycc-gold);
    box-shadow: 0 0 0 4px rgba(207, 160, 37, 0.12);
    background: #ffffff;
}

/* Radio Group styling */
.ma-radio-group {
    grid-column: span 1;
}

.ma-radio-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.ma-radio-options label {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    margin-bottom: 0;
}

.ma-radio-options input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--ycc-gold);
    cursor: pointer;
}

/* Form Footer */
.ma-form-footer {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.ma-submit-btn {
    background: var(--ycc-navy);
    color: #ffffff;
    border: none;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 38, 99, 0.15);
    display: inline-block;
    width: auto;
    text-transform: none;
}

.ma-submit-btn:hover {
    background: var(--ycc-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(207, 160, 37, 0.25);
    color: #ffffff;
}

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

.ma-disclaimer-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Responsive grid adjustments */
@media (max-width: 767px) {
    .ma-form-container {
        padding: 30px 20px;
    }
    .ma-form-grid {
        grid-template-columns: 1fr;
    }
    .ma-col-full, .ma-radio-group {
        grid-column: span 1;
    }
    .ma-submit-btn {
        width: 100%;
    }
}

/* Dashboard Table styling */
.ma-dashboard-container {
    max-width: 800px;
    margin: 40px auto;
    font-family: "Poppins", sans-serif;
}
.ma-table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
}
.ma-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #ffffff;
    box-shadow: var(--shadow-premium);
}
.ma-dashboard-table th, .ma-dashboard-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.ma-dashboard-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--ycc-navy);
}
.ma-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    text-align: center;
}
.badge-pending { background: #fef3c7; color: #d97706; }
.badge-approved { background: #dbeafe; color: #2563eb; }
.badge-rejected { background: #fee2e2; color: #dc2626; }
.badge-completed { background: #d1fae5; color: #059669; }

/* File upload styling & Form Wizard Stepper Styles */
.ma-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    font-family: inherit;
}
.ma-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
    flex: 1;
}
.ma-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}
.ma-step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
    transition: all 0.3s ease;
}
.ma-step-line {
    height: 2px;
    background: var(--border-color);
    flex-grow: 1;
    margin: 0 -15px;
    margin-bottom: 22px;
    z-index: 1;
    transition: all 0.3s ease;
}
.ma-step.active .ma-step-number {
    background: var(--ycc-navy);
    border-color: var(--ycc-navy);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 38, 99, 0.1);
}
.ma-step.active .ma-step-label {
    color: var(--ycc-navy);
    font-weight: 700;
}
.ma-step.completed .ma-step-number {
    background: var(--ycc-gold);
    border-color: var(--ycc-gold);
    color: #ffffff;
}
.ma-step.completed .ma-step-label {
    color: var(--ycc-gold-hover);
}
.ma-step-line.completed {
    background: var(--ycc-gold);
}

/* Step content animations */
.ma-form-step {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.ma-form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.ma-step-title {
    color: var(--ycc-navy);
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 5px;
    text-align: left;
}
.ma-step-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: left;
}

/* Interactive File Dropzones */
.ma-file-dropzone {
    border: 2px dashed var(--border-color);
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ma-file-dropzone:hover {
    border-color: var(--ycc-gold);
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(207, 160, 37, 0.04);
}
.ma-file-dropzone.ma-dragover {
    border-color: var(--ycc-gold);
    background: rgba(207, 160, 37, 0.05);
    transform: scale(1.01);
}
.ma-file-input {
    display: none !important;
}
.ma-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.ma-dropzone-icon {
    font-size: 28px;
    margin-bottom: 2px;
}
.ma-dropzone-text {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}
.ma-dropzone-info {
    font-size: 11px;
    color: var(--text-muted);
}
.ma-input-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
    line-height: 1.4;
}
.ma-dropzone-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    text-align: left;
}
.ma-preview-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}
.ma-preview-filename {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
    flex-grow: 1;
}
.ma-remove-file {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.ma-remove-file:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Validation & navigation controls */
.ma-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}
.ma-radio-group.ma-input-error {
    border: 1px solid #fee2e2;
    background: #fff5f5;
    padding: 15px;
    border-radius: 8px;
}
.ma-step-footer {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
/* Align Next button to the right on Step 1 */
.ma-form-step[data-step="1"] .ma-step-footer {
    justify-content: flex-end;
}
.ma-nav-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.ma-next-btn {
    background: var(--ycc-navy);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 38, 99, 0.12);
}
.ma-next-btn:hover {
    background: var(--ycc-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(207, 160, 37, 0.2);
    color: #ffffff;
}
.ma-prev-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid var(--border-color);
}
.ma-prev-btn:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

/* Stepper Responsive behavior */
@media (max-width: 767px) {
    .ma-stepper {
        margin-bottom: 30px;
    }
    .ma-step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .ma-step-label {
        font-size: 10px;
        margin-top: 5px;
    }
    .ma-step-line {
        margin-bottom: 18px;
    }
    .ma-step-footer {
        flex-direction: column-reverse;
        gap: 15px;
    }
    .ma-step-footer button, .ma-step-footer .ma-submit-btn {
        width: 100% !important;
    }
}


