/* =========================
   GLOBAL
========================= */
body {
    background: #f8fafc;
}

/* =========================
   BUILDER LAYOUT
========================= */
.rb-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.rb-form {
    width: 50%;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.rb-form h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

/* =========================
   ACF FORM STYLING
========================= */
.acf-form .acf-field {
    margin-bottom: 18px;
}

.acf-form input,
.acf-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.acf-form input:focus,
.acf-form textarea:focus {
    border-color: #10b981;
    outline: none;
}

/* Submit Button */
.acf-form input[type="submit"] {
    background: #10b981;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.acf-form input[type="submit"]:hover {
    background: #059669;
}

/* =========================
   LIVE PREVIEW
========================= */
.rb-preview-live {
    width: 50%;
}

.rb-preview-live h3 {
    margin-bottom: 15px;
}

.rb-preview-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    min-height: 300px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.preview-name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
}

.preview-role {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 10px;
}

.preview-summary {
    color: #475569;
    line-height: 1.6;
}

/* =========================
   RESUME DESIGN
========================= */
.rb-resume {
    display: flex;
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    font-family: 'Montserrat', sans-serif;
}

/* LEFT SIDE */
.rb-left {
    width: 30%;
    background: #1e293b;
    color: #fff;
    padding: 30px;
    text-align: center;
}

.rb-profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.rb-contact h4 {
    margin-bottom: 10px;
}

/* RIGHT SIDE */
.rb-right {
    width: 70%;
    padding: 40px;
}

.rb-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.rb-designation {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 20px;
}

/* SECTIONS */
.rb-section {
    margin-top: 20px;
}

.rb-section h3 {
    border-bottom: 2px solid #10b981;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* BUTTON */
.rb-actions {
    text-align: center;
    margin: 20px;
}

.rb-btn {
    background: #10b981;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.rb-btn:hover {
    background: #059669;
}

/* =========================
   PRINT (PDF)
========================= */
@media print {

    body * {
        visibility: hidden;
    }

    #resume-to-print,
    #resume-to-print * {
        visibility: visible;
    }

    #resume-to-print {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
    }

    .no-print {
        display: none !important;
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .rb-container {
        flex-direction: column;
    }

    .rb-form,
    .rb-preview-live {
        width: 100%;
    }

    .rb-resume {
        flex-direction: column;
    }

    .rb-left,
    .rb-right {
        width: 100%;
    }
}