/* operations/public/css/marketing.css
   AZ MARKETING BRAND STYLESHEET
   Matching https://a-z-marketing.com
   Neutrals & Bone: #FFFFFF, #F7F8FA, #FBF8F1
   Navy Primary & Structure: #071B33, #04101F, #0B2341, #12365A
*/

:root {
    --bg-bone: #FBF8F1;
    --bg-surface: #F7F8FA;
    --bg-white: #FFFFFF;
    --bg-ice: #EEF3F8;

    --navy-dark: #04101F;
    --navy-primary: #071B33;
    --navy-secondary: #0B2341;
    --navy-accent: #12365A;

    --gold-primary: #071B33;
    --gold-bright: #0B2341;
    --gold-deep: #071B33;
    --gold-medium: #071B33;
    --gold-champagne: #EEF3F8;

    --color-border: rgba(7, 27, 51, 0.12);
    --color-border-gold: rgba(7, 27, 51, 0.25);

    --font-heading: 'Alexandria', 'Cairo', sans-serif;
    --font-body: 'Tajawal', 'DM Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--bg-bone) !important;
    color: var(--navy-secondary) !important;
    font-family: var(--font-body);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.rtl {
    direction: rtl;
    text-align: right;
}

body.ltr {
    direction: ltr;
    text-align: left;
}

/* Corner Crosshair Markers (+) */
.cross-marker {
    position: fixed;
    color: #071B33;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    pointer-events: none;
    z-index: 99;
    user-select: none;
    opacity: 0.55;
}
.cross-tl { top: 16px; left: 20px; }
.cross-tr { top: 16px; right: 20px; }
.cross-bl { bottom: 16px; left: 20px; }
.cross-br { bottom: 16px; right: 20px; }

/* Site Header */
.m-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(251, 248, 241, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(7, 27, 51, 0.04);
}

.m-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--navy-primary);
}

.m-brand-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.m-brand:hover .m-brand-logo-img {
    transform: scale(1.02);
}

.m-brand-tagline-wrap {
    display: flex;
    align-items: center;
    border-inline-start: 1.5px solid rgba(7, 27, 51, 0.12);
    padding-inline-start: 12px;
}

.m-logo-icon {
    width: 32px;
    height: 32px;
    border: 2.5px solid #071B33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #071B33;
    flex-shrink: 0;
    position: relative;
}

.m-logo-icon::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(7, 27, 51, 0.4);
}

.m-brand-text-col {
    display: flex;
    flex-direction: column;
}

.m-brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--navy-primary);
    line-height: 1.1;
}

.m-brand-tagline {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #071B33;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.m-nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-btn-back {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy-secondary);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: var(--bg-white);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.m-btn-back:hover {
    border-color: #071B33;
    color: #071B33;
    background: var(--bg-bone);
}

.m-lang-toggle {
    display: inline-flex;
    background: var(--bg-white);
    border: 1.5px solid #071B33;
    border-radius: 20px;
    padding: 2px;
    gap: 2px;
}

.m-lang-toggle a {
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.15s ease;
}

.m-lang-toggle a.active {
    background: #071B33;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(7, 27, 51, 0.25);
}

.m-lang-toggle a:not(.active) {
    color: var(--navy-secondary);
}
.m-lang-toggle a:not(.active):hover {
    color: #071B33;
}

/* Main Container */
.m-container {
    max-width: 840px;
    margin: 2.5rem auto 4rem auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
}

/* Card Styling */
.m-card {
    background: #FFFFFF;
    border: 2px solid #071B33;
    border-radius: 18px;
    padding: 3rem 2.8rem;
    box-shadow: 0 15px 45px rgba(7, 27, 51, 0.08), 0 4px 12px rgba(7, 27, 51, 0.04);
    position: relative;
}

@media (max-width: 768px) {
    .m-header {
        padding: 0.85rem 1rem;
    }
    .m-card {
        padding: 1.8rem 1.25rem;
        border-radius: 14px;
    }
    .m-container {
        margin: 1.5rem auto 3rem auto;
        padding: 0 0.75rem;
    }
    .cross-marker {
        display: none;
    }
}

/* Section Technical Tags */
.m-section-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #071B33;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.m-card-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy-primary);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.m-card-subtitle {
    font-size: 0.95rem;
    color: var(--navy-accent);
    line-height: 1.55;
    margin-bottom: 2rem;
}

/* Form Elements */
.m-section-header {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--navy-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1.5px solid var(--bg-surface);
    padding-bottom: 0.5rem;
}

.m-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 640px) {
    .m-form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.m-form-group {
    margin-bottom: 1.2rem;
}

.m-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-secondary);
    margin-bottom: 0.45rem;
}

.m-label .req {
    color: #071B33;
    font-weight: 800;
}

.m-input, .m-select, .m-textarea {
    width: 100%;
    background: #F7F8FA;
    border: 1.5px solid rgba(7, 27, 51, 0.12);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--navy-primary);
    transition: all 0.2s ease;
    outline: none;
}

.m-input:focus, .m-select:focus, .m-textarea:focus {
    border-color: #071B33;
    background: #FFFFFF;
    box-shadow: 0 0 0 3.5px rgba(7, 27, 51, 0.12);
}

.m-input::placeholder, .m-textarea::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Service Checkbox Grid */
.m-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 0.6rem;
}

.m-service-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--bg-surface);
    border: 1.5px solid rgba(7, 27, 51, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.m-service-card:hover {
    border-color: #071B33;
    background: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 27, 51, 0.12);
}

.m-service-card input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #071B33;
    cursor: pointer;
}

.m-service-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-primary);
}

/* Submit Button */
.m-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #071B33 0%, #0B2341 100%);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(7, 27, 51, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.m-btn-submit:hover {
    background: linear-gradient(135deg, #0B2341 0%, #12365A 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(7, 27, 51, 0.35);
}

.m-btn-submit:active {
    transform: translateY(0);
}

/* Success Confirmation State */
.m-success-state {
    text-align: center;
    padding: 1.5rem 0;
}

.m-success-badge {
    width: 72px;
    height: 72px;
    background: rgba(7, 27, 51, 0.08);
    border: 2.5px solid #071B33;
    color: #071B33;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(7, 27, 51, 0.12);
}

.m-ref-code-box {
    background: var(--bg-surface);
    border: 1.5px solid #071B33;
    border-radius: 10px;
    padding: 18px 24px;
    max-width: 440px;
    margin: 1.5rem auto;
    text-align: center;
    box-shadow: 0 6px 20px rgba(7, 27, 51, 0.06);
}

.m-ref-code {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 800;
    color: #071B33;
    letter-spacing: 0.1em;
}

/* Footer */
.m-footer {
    background: var(--navy-primary);
    color: #FFFFFF;
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    border-top: 2px solid #071B33;
    margin-top: auto;
}

.m-footer a {
    color: #FFFFFF;
    text-decoration: underline;
    font-weight: 700;
}
.m-footer a:hover {
    color: #cbd5e1;
}

/* Alerts */
.m-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.m-alert-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}
.m-alert-danger {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* Animations */
@keyframes mFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.m-fade-in {
    animation: mFadeIn 0.28s ease-out forwards;
}

/* Responsive Breakpoints */
@media (max-width: 680px) {
    .m-header {
        padding: 0.8rem 1rem;
    }
    
    .m-brand-logo-img {
        height: 34px;
        max-width: 140px;
    }

    .m-brand-tagline-wrap {
        display: none !important;
    }

    .m-card {
        padding: 1.6rem 1.1rem;
    }
}

