﻿@font-face {
    font-family: 'Sarmady';
    src: url('../SarmadyVF.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --branch: #969156;
    --text: #664A3E;
    --sheep: #AA684F;
    --camel: #E78155;
    --herder: #EE984E;
    --sun: #F7AD4D;
    --rain: #00AEC7;
    --bg: #F8F6F3;
    --white: #FFFFFF;
    --danger: #C0392B;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at 10% 10%, rgba(247, 173, 77, 0.18) 0 2px, transparent 2px), linear-gradient(135deg, #F8F6F3, #F2EEE8);
    background-size: 22px 22px, cover;
    color: var(--text);
    font-family: 'Sarmady', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sarmady', sans-serif;
}

.page {
    min-height: 100vh;
    padding: 35px 20px;
}

.header {
    max-width: 1050px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--text), var(--sheep), var(--camel));
    color: var(--white);
    border-radius: 30px;
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(102, 74, 62, 0.25);
}

    .header::before {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(247, 173, 77, 0.25);
        top: -60px;
        left: -50px;
    }

    .header::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        border: 2px dashed rgba(255,255,255,0.28);
        bottom: -100px;
        right: -70px;
    }

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.logo-box {
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
    background: rgba(255,255,255,0.92);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

    .logo-box img {
        max-width: 130px;
        max-height: 100px;
    }

.header h1 {
    margin: 0;
    font-size: 30px;
    font-weight: bold;
}

.header p {
    margin: 12px 0 0;
    font-size: 16px;
    opacity: 0.95;
}

.container {
    max-width: 1050px;
    margin: auto;
}

.form-card {
    background: rgba(255,255,255,0.96);
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 18px 45px rgba(102, 74, 62, 0.12);
    border: 1px solid rgba(150, 145, 86, 0.20);
    direction: rtl;
}

.section-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0 0 24px;
    font-size: 32px;
    color: var(--text);
    text-align: right;
    direction: rtl;
    width: 100%;
    font-family: 'Sarmady', sans-serif;
}

    .section-title::before {
        content: "";
        width: 10px;
        height: 34px;
        border-radius: 10px;
        background: linear-gradient(180deg, var(--camel), var(--sun));
        left: 0;
    }

.form-section {
    margin-bottom: 35px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    direction: rtl;
}


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

    .form-group.full {
        grid-column: span 2;
    }

label {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text);
    text-align: right;
}

    label span {
        color: var(--danger);
    }

input,
textarea {
    width: 100%;
    border: 1.5px solid #E2D8D1;
    background: #FCFBFA;
    border-radius: 15px;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: 0.25s ease;
    font-family: inherit;
    text-align: right;
}

textarea {
    min-height: 120px;
    resize: vertical;
    text-align: right;
}

    input:focus,
    textarea:focus {
        background: var(--white);
        border-color: var(--camel);
        box-shadow: 0 0 0 4px rgba(231, 129, 85, 0.15);
    }

input[type="file"] {
    padding: 12px;
    cursor: pointer;
}

.error-message {
    display: none;
    color: var(--danger);
    font-size: 12px;
    margin-top: 7px;
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-color: var(--danger);
    background: #FFF7F6;
}

.form-group.invalid .error-message {
    display: block;
}

.submit-area {
    text-align: center;
    margin-top: 20px;
}

.btn-register {
    border: none;
    background: linear-gradient(135deg, var(--camel), var(--herder), var(--sun));
    color: var(--white);
    padding: 10px 55px;
    border-radius: 18px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 14px 30px rgba(231, 129, 85, 0.35);
    font-family: 'Sarmady', sans-serif;
}

    .btn-register:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 38px rgba(231, 129, 85, 0.45);
    }

    .btn-register:active {
        transform: scale(0.98);
    }

.success-container {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.success-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #00AEC7;
    color: white;
    font-size: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.success-container h1 {
    color: #AA684F;
    font-size: 42px;
    margin-bottom: 10px;
}

.success-container h2 {
    color: #664A3E;
    margin-bottom: 15px;
}

.success-container p {
    color: #666;
    max-width: 600px;
}

.footer {
    background: #AA684F;
    color: #fff;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-about {
    max-width: 500px;
}

    .footer-about h3 {
        margin-bottom: 15px;
        color: #F7AD4D;
    }

    .footer-about p {
        line-height: 1.9;
        color: rgba(255,255,255,.85);
    }

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 25px;
}

    .footer-logos img {
        height: 120px; /* كبر الحجم */
        width: auto;
        object-fit: contain;
        transition: 0.3s;
    }

        .footer-logos img:hover {
            transform: scale(1.05);
        }

.footer-divider {
    height: 1px;
    background: rgba(255,255,255,.15);
    margin: 30px 0;
}

.footer-bottom {
    justify-content: space-between;
    color: rgba(255,255,255,.7);
    font-size: 14px;
    text-align: center
}

.event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 40px;
    margin-bottom: 40px;
    background: linear-gradient( 135deg, #664A3E 0%, #AA684F 50%, #E78155 100% );
    border-radius: 30px;
    color: #fff;
    box-shadow: 0 15px 35px rgba(102,74,62,.25);
}

.header-logo {
    flex: 0 0 150px;
    text-align: center;
}

    .header-logo img {
        max-height: 150px;
        max-width: 300px;
        object-fit: contain;
        padding: 10px;
        border-radius: 15px;
    }

.header-title {
    flex: 1;
    text-align: center;
}

    .header-title h2 {
        margin: 0;
        color: #fff;
        font-size: 28px;
        font-weight: bold;
    }

    .header-title p {
        margin-top: 10px;
        color: rgba(255,255,255,.9);
        font-size: 15px;
    }
.textMobile {
    display: none;
}


@media(max-width:768px) {

    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    .exhibitor-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-logos {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 28px 20px;
    }

        .header h1 {
            font-size: 24px;
        }

    .form-card {
        padding: 25px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }

    .btn-register {
        width: 100%;
    }
}
@media (max-width: 768px) {

    .event-header {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 25px;
        padding: 15px;
    }

    .header-title {
        display: none;
    }

    .header-logo {
        flex: unset;
    }

        .header-logo img {
            max-height: 70px;
            width: auto;
        }
    


    .footer-logos img {
        height: 70px;
        width: auto;
        object-fit: contain;
        transition: 0.3s;
    }
    .textMobile {
    display:block;
    }
}