﻿/* =========================================
   🔵 FORCE FULLSCREEN POPUP (KEY FIX)
   ========================================= */
.popup-a4-full {
    width: 100vw !important;
    height: 100vh !important;
}

    /* Main popup container */
    .popup-a4-full .dxbl-popup {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
    }

    /* Popup content */
    .popup-a4-full .dxbl-popup-content {
        padding: 0 !important;
        margin: 0 !important;
        height: 100vh;
        overflow-y: auto;
    }

    /* Remove default padding */
    .popup-a4-full .dxbl-popup-body {
        padding: 0 !important;
    }

    /* Hide DevExpress header (use your own) */
    .popup-a4-full .dxbl-popup-header {
        display: none;
    }


/* =========================================
   🔵 CENTERING WRAPPER
   ========================================= */
.form-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
    background: #f5f7fb;
}


/* =========================================
   🔵 TRUE A4 CONTAINER (NO SHRINK)
   ========================================= */
.pdf-container {
    width: 794px; /* EXACT A4 width in px */
    min-height: 1123px; /* EXACT A4 height in px */

    background: #ffffff;
    padding: 25px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 6px;
    box-sizing: border-box;
}


/* =========================================
   🔵 HEADER
   ========================================= */
.pdf-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

    .pdf-header h3 {
        margin: 0;
        font-weight: 700;
    }

    .pdf-header h5 {
        margin: 5px 0 0;
        font-weight: 500;
    }


/* =========================================
   🔵 SECTIONS
   ========================================= */
.pdf-section {
    margin-top: 20px;
}

.pdf-title {
    font-weight: 600;
    color: #0b3d91;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 10px;
}


/* =========================================
   🔵 FORM FIXES
   ========================================= */
.pdf-container .row {
    margin-bottom: 12px;
}

.pdf-container label {
    font-weight: 600;
    font-size: 13px;
}

/* DevExpress inputs FULL width */
.pdf-container .dx-texteditor,
.pdf-container .dx-dropdowneditor,
.pdf-container .dx-datebox {
    width: 100% !important;
}

/* Upload + Grid */
.pdf-container .dxbl-upload,
.pdf-container .dxbl-grid {
    width: 100%;
}

/* Buttons */
.pdf-container .dx-button {
    margin: 5px;
}


/* =========================================
   🔵 GRID POLISH
   ========================================= */
.professional-grid .dxbl-grid {
    border-radius: 6px;
}

.professional-grid .dxbl-grid-header {
    background: #f5f7fb;
    font-weight: 600;
}

.professional-grid .dxbl-grid-row:hover {
    background: #eef3fb;
}


/* =========================================
   🔵 RESPONSIVE (IMPORTANT)
   ========================================= */
@media (max-width: 900px) {

    .pdf-container {
        width: 100%;
        min-height: auto;
        box-shadow: none;
        border-radius: 0;
    }

    .form-wrapper {
        padding: 10px;
    }
}


/* =========================================
   🔵 PRINT
   ========================================= */
@media print {
    .pdf-container {
        box-shadow: none;
        width: 100%;
    }
}


/*_____________________________________REg_____________*/

/* PAGE */
.reg-page {
    min-height: 100vh;
    background: #f4f8fb;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 🔵 HEADER */
.wra-header {
    width: 100%;
    max-width: 1100px;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: white;
    padding: 20px 40px;
    position: relative;
    overflow: hidden;
}

.wra-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wra-logo {
    width: 55px;
}

.wra-header h2 {
    margin: 0;
    font-size: 22px;
}

.wra-header span {
    font-size: 13px;
    opacity: 0.9;
}

/* 🌊 WAVE ANIMATION */
.wave {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 100%;
    animation: waveMove 6s linear infinite;
}

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* CONTAINER */
.reg-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
    width: 100%;
    max-width: 1100px;
    margin-top: 30px;
}

/* CARDS */
.reg-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* FORM */
.reg-body {
    margin-top: 15px;
}

.form-group {
    margin-bottom: 15px;
}

    /* FULL WIDTH INPUT FIX */
    .form-group ::deep input,
    .form-group ::deep .dx-texteditor {
        width: 100% !important;
    }

/* INLINE VALIDATION */
.form-row-inline {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    align-items: end;
    margin-top: 10px;
}

.validation-btn {
    display: flex;
    align-items: flex-end;
}

/* BUTTONS */
.btn-primary {
    width: 100%;
    background-color: #3949ab !important;
    color: white !important;
}

.btn-success {
    background-color: #2e7d32 !important;
    color: white !important;
}

/* ACTION */
.form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* INFO PANEL */
.info-card h4 {
    color: #0d47a1;
}

.info-card ul {
    padding-left: 18px;
}

.info-card li {
    margin-bottom: 8px;
}

/* FOOTER */
.reg-footer {
    margin: 25px 0;
    font-size: 13px;
    color: #777;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .reg-container {
        grid-template-columns: 1fr;
    }

    .form-row-inline {
        grid-template-columns: 1fr;
    }
}


/*_________________________________water use_________________*/

/* ===== PAGE BACKGROUND ===== */
.p-frm-page {
    background: linear-gradient(135deg, #eef5fb, #dce9f7);
    min-height: 100vh;
    padding: 20px;
}

/* ===== CARD ===== */
.p-frm-card {
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ===== SECTION TITLE ===== */
.p-frm-title {
    font-size: 18px;
    font-weight: 600;
    color: #0d47a1;
    border-left: 5px solid #1976d2;
    padding-left: 10px;
    margin-bottom: 15px;
}

/* ===== GRID SYSTEM ===== */
.p-frm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
}

/* FULL WIDTH */
.p-frm-full {
    grid-column: span 2;
}

/* ===== FORM FIELD ===== */
.p-frm-field {
    display: flex;
    flex-direction: column;
}

.p-frm-label {
    font-size: 13px;
    font-weight: 600;
    color: #34495e;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .p-frm-label i {
        color: #1976d2;
    }

/* INPUT STYLE FIX */
.p-frm-field input,
.p-frm-field .dx-texteditor,
.p-frm-field .dx-dropdowneditor {
    width: 100% !important;
}

/* ===== INSTRUCTION PANEL ===== */
.p-frm-instructions {
    background: #f4f8fd;
    border-left: 5px solid #1976d2;
    border-radius: 10px;
    padding: 20px;
    font-size: 14px;
}

    .p-frm-instructions ol {
        padding-left: 18px;
    }

    .p-frm-instructions li {
        margin-bottom: 10px;
    }

/* ===== FOOTER BUTTONS ===== */
.p-frm-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.p-frm-btn {
    padding: 10px;
    background: linear-gradient(to right, #0a4da3, #0096c7);
    color: white;
    border: none;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.3s;
}

/* ===== RESPONSIVE ===== */
@media(max-width: 768px) {
    .p-frm-grid {
        grid-template-columns: 1fr;
    }

    .p-frm-full {
        grid-column: span 1;
    }
}