/*
Theme Name:   SSAS
Author:       SSAS
Description:  Heuro SAS Bank theme
Version:      1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background: #1a1a2e;
    color: #222;
    line-height: 1.5;
}

:root {
    --blue: #002395;
    --red: #ED2939;
    --white: #fff;
    --dark: #0a0f1c;
}

.french-flag-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.flag-container {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    animation: wave 18s ease-in-out infinite;
}

.blue-stripe,
.white-stripe,
.red-stripe {
    position: absolute;
    height: 100%;
    width: 33.33%;
}

.blue-stripe {
    left: 0;
    background: linear-gradient(145deg, #0033a0, #001a6e, #0022cc);
}

.white-stripe {
    left: 33.33%;
    background: linear-gradient(145deg, #ffffff, #f8faff, #fff5f0);
}

.red-stripe {
    left: 66.66%;
    background: linear-gradient(145deg, #e3172e, #b00b1a, #ff2244);
}

@keyframes wave {
    0% { transform: translate(0, 0) rotate(0deg);}
    50% { transform: translate(-1%, 1%) rotate(.5deg);}
    100% { transform: translate(0, 0) rotate(0deg);}
}

.content {
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: rgba(255, 255, 255, .95);
    padding: 20px 30px;
    border-radius: 60px;
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

.logo {
    font-size: 34px;
    font-weight: 800;
}

.blue-part { color: var(--blue); }
.red-part { color: var(--red); }
.license { color: var(--blue); font-weight: 700; margin-top: 8px; font-size: 14px; }
.nav-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--blue); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--red); }

.translate-container {
    background: rgba(0,35,149,0.08);
    border-radius: 40px;
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.translate-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
}
#google_translate_element select {
    background: white;
    border: 1px solid rgba(0,35,149,0.25);
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}

.hero-c2b {
    background: rgba(255, 255, 255, .96);
    border-radius: 40px;
    padding: 50px 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.hero-badge { display: inline-block; background: linear-gradient(135deg, var(--blue), var(--red)); color: #fff; padding: 8px 20px; border-radius: 50px; margin-bottom: 20px; font-weight: 600; font-size: 14px; }
.hero-c2b h1 { font-size: 48px; color: var(--blue); margin-bottom: 20px; }
.hero-c2b p { font-size: 18px; color: #333; max-width: 80%; }

.button-group-hero {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.section-title { font-size: 32px; color: var(--blue); margin-bottom: 30px; border-left: 5px solid var(--red); padding-left: 20px; }
.grid-2cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 50px; }
.card { background: rgba(255, 255, 255, .96); padding: 30px; border-radius: 28px; transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.card-icon { font-size: 48px; margin-bottom: 20px; }
.card h3 { color: var(--blue); margin-bottom: 15px; font-size: 24px; }
.card p { color: #444; line-height: 1.6; }

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue), var(--red));
    color: #fff;
    padding: 14px 35px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--blue);
    color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: white; }

.btn-support {
    background: linear-gradient(135deg, #1a4731, #0d2f20);
    border: none;
}
.btn-support:hover { background: linear-gradient(135deg, #0d2f20, #1a4731); }

.bank-details { background: linear-gradient(135deg, #002395, #001a6e); color: white; padding: 40px; border-radius: 28px; margin-bottom: 50px; }
.bank-details h3 { font-size: 28px; margin-bottom: 25px; border-left: 4px solid #ED2939; padding-left: 20px; }
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 25px; }
.detail-item { background: rgba(255,255,255,0.1); padding: 20px; border-radius: 20px; }
.detail-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; margin-bottom: 8px; }
.detail-value { font-size: 18px; font-weight: 600; }

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-content {
    background: #fff;
    width: 100%;
    max-width: 750px;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    background: linear-gradient(135deg, #002395, #001a6e);
    padding: 28px 35px;
    color: white;
}
.modal-header h2 {
    color: white;
    font-size: 26px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.modal-header p {
    color: rgba(255,255,255,0.8);
    margin-top: 8px;
    font-size: 14px;
}
.modal-close {
    position: absolute;
    right: 25px;
    top: 22px;
    font-size: 32px;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.modal-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}
.modal-body {
    padding: 35px;
    max-height: 70vh;
    overflow-y: auto;
}
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}
.form-row .form-group {
    flex: 1;
    min-width: 200px;
}
label {
    font-weight: 600;
    color: #002395;
    font-size: 12px;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
label .required {
    color: #ED2939;
    margin-left: 3px;
}
input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
    background: #fafafa;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #002395;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,35,149,0.1);
}
.phone-row {
    display: flex;
    gap: 12px;
    margin-bottom: 5px;
}
.phone-row select {
    width: 40%;
    margin-bottom: 20px;
}
.phone-row input {
    width: 60%;
    margin-bottom: 20px;
}
.file-input {
    padding: 10px 16px;
    background: #fafafa;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    margin-bottom: 20px;
    width: 100%;
}
.file-input::-webkit-file-upload-button {
    background: linear-gradient(135deg, var(--blue), var(--red));
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-right: 15px;
}
.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 10px;
}
.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 16px;
    margin-top: 20px;
    text-align: center;
    border-left: 4px solid #28a745;
}
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 16px;
    margin-top: 20px;
    text-align: center;
    border-left: 4px solid #dc3545;
}
footer {
    background: linear-gradient(135deg, var(--blue), #001050);
    color: #fff;
    padding: 40px 0 20px;
    border-radius: 40px 40px 0 0;
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}
.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .2);
}
/* Dashboard */
.dashboard-hero {
    background: rgba(255,255,255,.96);
    border-radius: 28px;
    padding: 30px 35px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.dashboard-hero h1 {
    font-size: 30px;
    color: var(--blue);
    margin: 10px 0 20px;
}
.dashboard-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,35,149,0.05);
    border-radius: 16px;
    padding: 12px 14px;
    flex: 1;
    min-width: 150px;
}
.feature-icon { font-size: 22px; flex-shrink: 0; }
.feature-item strong { font-size: 12px; color: var(--blue); display: block; margin-bottom: 2px; }
.feature-item p { font-size: 11px; color: #666; margin: 0; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.dash-card {
    background: rgba(255,255,255,.96);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.dash-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.dash-card-icon { font-size: 20px; }
.dash-card h3 { color: var(--blue); font-size: 15px; margin: 0; }
.balance-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.dash-balance-amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 10px;
}
.status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}
.status-active { background: #d4edda; color: #155724; }
.status-blocked { background: #f8d7da; color: #721c24; }
.dash-balance-rows { border-top: 1px solid #f0f0f0; padding-top: 14px; }
.dash-balance-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}
.iban-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,35,149,0.06);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 1px;
    word-break: break-all;
}
.iban-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform 0.2s;
}
.iban-copy-btn:hover { transform: scale(1.2); }
.iban-details { display: flex; flex-direction: column; gap: 10px; }
.iban-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #555;
}
.iban-detail-label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; }
.withdraw-min { font-size: 12px; color: #999; margin-bottom: 14px; }
.withdraw-currency-row { display: flex; justify-content: space-between; align-items: center; }
.withdraw-select {
    padding: 8px 12px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    font-size: 13px;
    background: #fafafa;
    width: 60%;
    margin-bottom: 0;
}

.dashboard-quick-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.qa-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    background: rgba(255,255,255,.96);
    border-radius: 20px;
    padding: 18px 14px;
    flex: 1;
    min-width: 130px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.qa-item span { font-size: 26px; }
.qa-item strong { font-size: 12px; color: var(--blue); }
.qa-item small { font-size: 11px; color: #999; }

@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-features { flex-direction: column; }
    .dashboard-quick-actions { flex-wrap: wrap; }
    .dash-balance-amount { font-size: 22px; }
}

/* Login modal */
.login-field-group {
    margin-bottom: 5px;
}
.login-field-group label {
    font-weight: 600;
    color: #002395;
    font-size: 12px;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.login-divider {
    text-align: center;
    margin: 10px 0 20px;
    color: #888;
    font-size: 13px;
}
.login-forgot {
    display: block;
    text-align: right;
    font-size: 13px;
    color: var(--blue);
    text-decoration: none;
    margin-top: -12px;
    margin-bottom: 20px;
}
.login-forgot:hover { color: var(--red); }

/* CF7 resets inside modals */
.wpcf7-form p { margin: 0; }
.wpcf7-form span.wpcf7-form-control-wrap { display: block; }
.wpcf7-form input[type="email"],
.wpcf7-form input[type="password"],
.wpcf7-form input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
    background: #fafafa;
    box-sizing: border-box;
}
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="password"]:focus,
.wpcf7-form input[type="text"]:focus {
    outline: none;
    border-color: #002395;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,35,149,0.1);
}
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue), var(--red));
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 10px;
    font-family: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.wpcf7-response-output {
    margin-top: 15px !important;
    padding: 15px !important;
    border-radius: 16px !important;
    font-size: 14px;
}
.wpcf7-not-valid-tip {
    color: #ED2939;
    font-size: 12px;
    margin-top: -16px;
    display: block;
}

@media (max-width: 768px) {
    .grid-2cols { grid-template-columns: 1fr; }
    .hero-c2b h1 { font-size: 32px; }
    .hero-c2b p { max-width: 100%; }
    .navbar { flex-direction: column; text-align: center; }
    .form-row { flex-direction: column; }
    .phone-row { flex-direction: column; }
    .phone-row select, .phone-row input { width: 100%; }
    .modal-header { padding: 20px; }
    .modal-body { padding: 25px; }
}
