/* ========================================
   VISITOR REGISTRATION FORM - CSS STYLES
   SeaFood4Africa 2026
   ======================================== */

/* Base Styles */
body {
    background: rgb(145, 145, 145);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Main Container */
.visitor-registration-container {
    min-height: 100vh;
    padding: 40px 20px;
}

/* Registration Card */
.registration-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   HEADER SECTION
   ======================================== */
.header-section {
    color: white;
    padding: 92px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-section img {
    width: 75rem;
    height: 36rem;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay pour améliorer la lisibilité du texte */
.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 102, 204, 0.7);
    z-index: 1;
}

/* ========================================
   LOGO CONTAINER
   ======================================== */
.header-section .logo-container {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.header-section .logo-container > a:first-child img {
    max-width: 280px;
    height: auto;
}

/* ========================================
   HOME ICON - BELOW LOGO
   ======================================== */
.home-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.home-icon-link:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.home-icon-link i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.home-icon-link:hover i {
    transform: scale(1.15);
}

.home-icon-link span {
    letter-spacing: 0.3px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .home-icon-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .home-icon-link i {
        font-size: 1.1rem;
    }
}

/* ========================================
   EXISTING STYLES
   ======================================== */
.header-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.grop {
    width: auto;
    height: 5rem;
    position: relative;
    z-index: 2;
}

.header-section .event-date {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.header-section .event-location {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CONTENT SECTION
   ======================================== */
.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* ========================================
   INFO PANEL (Left Side)
   ======================================== */
.info-panel {
    background: #f8f9fa;
    padding: 50px 40px;
    border-right: 1px solid #e0e0e0;
}

.info-panel h2 {
    color: #0066cc;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.info-panel h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.info-panel p, 
.info-panel ul {
    text-align: justify;
    color: #555;
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.info-panel ul {
    list-style: none;
    padding-left: 0;
}

.info-panel ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
}

.info-panel ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Benefit Cards */
.benefit-card {
    background: white;
    border-left: 4px solid #0066cc;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.benefit-card h4 {
    color: #0066cc;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.benefit-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========================================
   FORM PANEL (Right Side)
   ======================================== */
.form-panel {
    padding: 50px 40px;
    background: white;
}

.form-panel h2 {
    color: #0066cc;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.form-panel .subtitle {
    text-align: justify;
    color: #666;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Important Info Box */
.important-info {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.important-info h3 {
    color: #856404;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.important-info p {
    text-align: justify;
    color: #856404;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label .required {
    color: #dc3545;
    margin-left: 3px;
}

/* Input Fields */
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #0066cc;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-control::placeholder {
    color: #999;
}

/* Select Dropdowns */
select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    font-size: 0.95rem;
    height: auto;
    min-height: 50px;
    line-height: 1.6;
}

select.form-control option {
    padding: 12px 15px;
    direction: ltr;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.8;
    min-height: 45px;
    white-space: normal;
    word-wrap: break-word;
}

/* Better spacing for bilingual options */
select.form-control option:not(:first-child) {
    border-top: 1px solid #f0f0f0;
}

/* Improve Arabic text rendering in select */
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    select.form-control option {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Traditional Arabic', Arial, sans-serif;
    }
}

/* ========================================
   PHONE INPUT WITH COUNTRY CODE
   ======================================== */
.phone-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.phone-input-wrapper .country-code {
    flex: 0 0 140px;
    padding: 14px 12px;
    font-size: 0.95rem;
    background-position: right 10px center;
    padding-right: 35px;
}

.phone-input-wrapper .phone-number {
    flex: 1;
}

/* Style pour les options du select avec drapeaux */
.country-code option {
    padding: 10px;
    font-size: 0.95rem;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ========================================
   SOCIAL MEDIA SECTION
   ======================================== */
.social-media-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.social-media-section h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.social-btn i {
    font-size: 1.3rem;
}

.social-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
}

.social-btn.facebook:hover {
    background: linear-gradient(135deg, #0c63d4 0%, #1877f2 100%);
}

.social-btn.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.instagram:hover {
    background: linear-gradient(135deg, #bc1888 0%, #cc2366 25%, #dc2743 50%, #e6683c 75%, #f09433 100%);
}

.social-btn.tiktok {
    background: linear-gradient(135deg, #000000 0%, #ff0050 50%, #00f2ea 100%);
}

.social-btn.tiktok:hover {
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 50%, #000000 100%);
}

/* ========================================
   ARABIC TEXT SUPPORT
   ======================================== */
.arabic-text {
    direction: rtl;
    text-align: right;
    font-family: 'Traditional Arabic', 'Arial', sans-serif;
    line-height: 1.8;
    margin-top: 10px;
}

.info-panel .arabic-text {
    color: #555;
    font-size: 20px;
}

.important-info .arabic-text {
    text-align: justify;
    color: #856404;
    font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet & Below */
@media (max-width: 992px) {
    .content-section {
        grid-template-columns: 1fr;
    }

    .info-panel {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .header-section h1 {
        font-size: 2rem;
    }

    .info-panel, 
    .form-panel {
        padding: 30px 25px;
    }
}

/* Tablet Small (768px to 576px) */
@media (max-width: 768px) {
    .header-section {
        padding: 60px 30px;
    }

    .header-section .logo-container img {
        max-width: 220px;
    }

    .header-section h1 {
        font-size: 1.8rem;
    }

    .header-section .event-date {
        font-size: 1.1rem;
    }

    .header-section .event-location {
        font-size: 0.95rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .visitor-registration-container {
        padding: 20px 10px;
    }

    .registration-card {
        border-radius: 15px;
    }

    .header-section {
        padding: 25px 15px;
        min-height: auto;
    }

    /* Fix background image pour mobile */
    .header-background {
        object-fit: cover;
        object-position: center;
    }

    /* Fix logo container */
    .logo-container {
        margin-bottom: 20px;
    }

    .header-section .logo-container img {
        max-width: 160px !important;
        width: auto;
        height: auto;
    }

    /* Fix le groupe de texte */
    .grop {
        width: 100%;
        height: auto;
        padding: 15px 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .header-section h1 {
        font-size: 1.25rem;
        margin-bottom: 8px;
        line-height: 1.3;
        font-weight: 600;
    }

    .header-section .event-date {
        font-size: 0.85rem;
        margin-bottom: 5px;
        line-height: 1.4;
    }

    .header-section .event-location {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Amélioration de l'image de fond */
    .header-section img {
        width: 100% !important;
        height: -1rem !important;
        min-height: 55px;
        max-height: 350px;
    }

    /* Ajustement de l'overlay - plus transparent */
    .header-section::before {
        background: rgba(0, 102, 204, 0.75);
    }

    /* Info panel adjustments */
    .info-panel h2, 
    .form-panel h2 {
        font-size: 1.5rem;
    }

    .info-panel h3 {
        font-size: 1.2rem;
        margin-top: 20px;
    }

    .info-panel p,
    .info-panel ul {
        font-size: 16px;
    }

    .info-panel .arabic-text {
        font-size: 16px;
    }

    .info-panel ul li {
        padding-left: 25px;
        margin-bottom: 10px;
    }

    .info-panel ul li::before {
        font-size: 1rem;
    }

    .benefit-card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .benefit-card h4 {
        font-size: 1rem;
    }

    .benefit-card p {
        font-size: 0.9rem;
    }

    .info-panel,
    .form-panel {
        padding: 25px 20px;
    }

    .form-panel .subtitle {
        font-size: 0.95rem;
    }

    .important-info {
        padding: 12px 15px;
        margin-bottom: 25px;
    }

    .important-info h3 {
        font-size: 1rem;
    }

    .important-info p {
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-control {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    select.form-control {
        min-height: 48px;
        font-size: 0.9rem;
        padding-right: 35px;
    }
    
    /* Phone input mobile */
    .phone-input-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .phone-input-wrapper .country-code {
        flex: 1;
        width: 100%;
    }
    
    /* Social buttons mobile */
    .social-media-section {
        margin-top: 30px;
        padding-top: 25px;
    }

    .social-media-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .social-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .social-btn {
        justify-content: center;
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .social-btn i {
        font-size: 1.2rem;
    }

    /* Submit button mobile */
    .submit-btn {
        font-size: 1rem;
        padding: 14px;
    }
}

/* Extra small devices (moins de 400px) */
@media (max-width: 400px) {
    .visitor-registration-container {
        padding: 15px 8px;
    }

    .header-section {
        padding: 17px 12px;
    }

    .header-section .logo-container img {
        max-width: 140px !important;
    }

    .grop {
        padding: 12px 8px;
        gap: 6px;
    }

    .header-section h1 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .header-section .event-date {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .header-section .event-location {
        font-size: 0.75rem;
    }

    .header-section img {
        min-height: 42px;
        max-height: 300px;
    }

    .info-panel,
    .form-panel {
        padding: 20px 15px;
    }

    .info-panel h2,
    .form-panel h2 {
        font-size: 1.3rem;
    }

    .info-panel p,
    .info-panel ul {
        font-size: 15px;
    }

    .form-control {
        padding: 11px 14px;
        font-size: 0.9rem;
    }

    .submit-btn {
        font-size: 0.95rem;
        padding: 12px;
    }

    .social-btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}

/* Very small phones (moins de 360px) */
@media (max-width: 360px) {
    .header-section .logo-container img {
        max-width: 130px !important;
    }

    .header-section h1 {
        font-size: 1rem;
    }

    .header-section .event-date,
    .header-section .event-location {
        font-size: 0.75rem;
    }

    .info-panel h2,
    .form-panel h2 {
        font-size: 1.2rem;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .submit-btn {
        font-size: 0.9rem;
        padding: 11px;
    }
}