/* ------------------ GLOBAL ------------------ */
body {
    background: linear-gradient(135deg, #9b59b6, #6f42c1, #4834d4);
    font-family: 'Poppins', sans-serif;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}

/* ------------------ LOGO ------------------ */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;  /* space between logo and text */
    flex-wrap: wrap;
    padding: 30px 15px;
}

.logo-img img {
    width: 133px;
    height: auto;
}

.logo-name h3 {
    color: #6f42c1;
    font-weight: 700;
    margin: 0;
    font-size: 36px;
    text-align: center;
}

.logo-name p {
    color: #6f42c1;
    font-weight: 500;
    margin: 5px 0 0 0;
    font-size: 15px;
    text-align: center;
}

/* ------------------ CARD ------------------ */
.visit-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ------------------ SECTION TITLE ------------------ */
.visit-title {
    background: #6f42c1;
    color: #fff;
    padding: 12px 0;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

/* ------------------ FORM ------------------ */
.form-control,
.form-select,
textarea.form-control {
    border-radius: 10px;
    height: 45px;
    border: 1px solid #bbb;
    transition: 0.3s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: #6f42c1 !important;
    box-shadow: 0 0 5px rgba(111,66,193,0.4) !important;
}

textarea.form-control {
    height: 90px;
}

.form-label {
    font-weight: 600;
    color: #444;
}

/* ------------------ BUTTON ------------------ */
.btn-primary {
    background: #6f42c1 !important;
    border: none !important;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 18px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #5a36a5 !important;
}

/* ------------------ BORDER CONTAINER ------------------ */
.border {
    border: 1px solid #6f42c1;
    border-radius: 8px;
    padding: 25px;
    background: #ffffff;
}

/* ------------------ MOBILE ------------------ */
@media(max-width: 767px) {
    .logo {
        flex-direction: column;
        padding: 20px 10px;
    }

    .logo-img img {
        width: 100px;
        margin-bottom: 10px;
        position: relative;
        left: 0;
        top: 0;
    }

    .logo-name h3 {
        font-size: 22px;
    }

    .logo-name p {
        font-size: 12px;
    }

    .visit-title {
        font-size: 18px;
        padding: 8px 0;
    }

    .form-control,
    .form-select {
        height: 40px;
        font-size: 14px;
    }

    textarea.form-control {
        height: 70px;
    }

    .btn-primary {
        font-size: 15px;
        padding: 8px 20px;
    }

    .visit-card {
        padding: 20px 15px;
    }
}

/* ------------------ TABLET (Logo Centered) ------------------ */
@media (max-width: 1024px) and (min-width: 768px) {
    .logo {
        flex-direction: column;      /* stack logo and text */
        justify-content: center;     /* center horizontally */
        align-items: center;         /* center vertically */
        padding: 25px 20px;
        gap: 10px;                   /* space between logo and text */
    }

    .logo-img img {
        width: 110px;
        height: auto;
        margin: 0;                   /* remove right margin */
    }

    .logo-name h3 {
        font-size: 28px;
        text-align: center;          /* center text */
    }

    .logo-name p {
        font-size: 14px;
        text-align: center;          /* center text */
    }

    .visit-title {
        font-size: 20px;
        padding: 10px 0;
        margin-bottom: 20px;
    }

    .form-control,
    .form-select {
        height: 42px;
        font-size: 15px;
    }

    textarea.form-control {
        height: 80px;
    }

    .btn-primary {
        font-size: 16px;
        padding: 9px 25px;
    }

    .visit-card {
        padding: 25px 20px;
    }

    .border {
        padding: 20px;
    }
}
