@font-face {
  font-family: "Morabba";
  src: url("./font/Morabba-Medium.ttf");
}

* {
    box-sizing: border-box;
}

body {
    height: 100vh;
    margin: 0;
    font-family: Morabba;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #232734;
    z-index: -1;
}

/* لوگو */
.main-content img {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin-bottom: 25px;
    border-radius: 12px;
}

/* عنوان */
.main-content h1 {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
}

/* توضیح */
.main-content p {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 25px;
}

/* فرم */
.phone-form {
    display: flex;
    flex-direction: row-reverse;  /* دکمه سمت راست */
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 550px;
}

/* فیلد شماره */
.phone-form input[type="tel"] {
    flex: 2;
    padding: 14px 18px;
    font-size: 17px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: #ffffff;
    font-family: Morabba;
    direction: rtl;
    text-align: right;
}

/* دکمه */
.phone-form button {
    flex: 1;
    padding: 14px 18px;
    font-size: 17px;
    border-radius: 8px;
    border: none;
    background: #076164;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    font-family: Morabba;
}

.phone-form button:hover {
    background: #054B4D;
}

/* پیام موفقیت */
.success-box {
    display: none;  /* مخفی قبل از ارسال فرم */
    background: #32c861;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 16px;
    text-align: center;
    width: 100%;
    max-width: 550px;
}

/* ریسپانسیو */
@media (max-width: 600px) {

    .main-content img {
        max-width: 120px;
        margin-bottom: 20px;
    }

    .main-content h1 {
        font-size: 24px;
    }

    .main-content p {
        font-size: 16px;
        padding: 0 15px;
    }

    .phone-form {
        flex-direction: column;
        max-width: 300px;
    }

    .phone-form input[type="tel"],
    .phone-form button {
        width: 100%;
        flex: none;
        font-size: 15px;
        padding: 12px 15px;
    }

    .success-box {
        max-width: 300px;
    }
}
