
/* =========================
   FORM SECTION
========================= */
form {
    max-width: 900px;
    margin: 50px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* headings */
form h3 {
    margin: 25px 0 10px;
    color: var(--heading);
}

/* input groups */
.form-group {
    margin-bottom: 15px;
}

label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: var(--heading);
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
}

/* row */
.row {
    display: flex;
    gap: 15px;
}

.row .form-group {
    flex: 1;
}

/* Checkbox alignment FIX */
.form-group.tick {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-group.tick input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px; /* perfect vertical align */
    flex-shrink: 0;
}

.form-group.tick span {
    display: inline-block;
    line-height: 1.5;
    color: var(--text);
}

/* submit button */
.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #0056b3;
}

/* =========================
   FILE UPLOAD
========================= */
.preview-img {
    max-width: 120px;
    margin-top: 10px;
    border-radius: 8px;
}

.progress {
    height: 6px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
}

/* =========================
   MODAL
========================= */
#previewModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#previewModal > div {
    background: #fff;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
}


.socials span {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e6f0ff;
    color: var(--primary);
    border-radius: 50%;
    margin-right: 5px;
    cursor: pointer;
}

/* footer bottom */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.85rem;
    color: var(--text);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .row {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}