/* =============================================
   Conference Enquiry Form - Responsive Styles
   ============================================= */

/* Container */
.conference-form-container {
    max-width: 960px;
    margin: 0px auto;
    padding: 0 20px 0px;
    font-family: 'Source Sans 3', Arial, sans-serif;
    color: #333;
}

@media (min-width: 992px) {
    .pkp_structure_main {
        float: left;
        padding: 0 2.143rem 1.429rem;
        width: 652px;
    }
}

.pkp_structure_main h5,
.pkp_structure_main h6 {
    margin: 0 0 !important;
}

@media (min-width: 1200px) {
    .pkp_structure_main {
        width: 100% !important;
    }
}

@media (min-width: 1200px) {
    .pkp_structure_main:after {
        left: 0 !important;
    }
}



/* Page Header */
.conference-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.conference-form-header h2 {
    color: #057f86;
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 10px;
}

.conference-form-header p {
    color: #6c757d;
    font-size: 1.05rem;
    margin-bottom: 0;
}

.conference-form-header hr {
    width: 80px;
    border: 0;
    border-top: 3px solid #ff9800;
    margin: 18px auto 0;
}

/* Card */
.conference-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.conference-card-header {
    background-color: #057f86;
    padding: 14px 22px;
}

.conference-card-header h5 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.conference-card-body {
    padding: 22px 22px 10px;
    background: #fafafa;
}

/* Grid */
.conference-row {
    display: flex;
    flex-wrap: wrap;
    margin: -8px;
}

.conference-col-12,
.conference-col-6,
.conference-col-4 {
    box-sizing: border-box;
    padding: 8px;
}

.conference-col-12 {
    width: 100%;
}

.conference-col-6 {
    width: 50%;
}

.conference-col-4 {
    width: 33.3333%;
}

/* Form groups */
.conference-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
}

.conference-form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 6px;
}

/* Controls */
.conference-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.25s, box-shadow 0.25s;
    color: #333;
}

.conference-form-control:focus {
    border-color: #057f86;
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 127, 134, 0.15);
}

textarea.conference-form-control {
    resize: vertical;
    min-height: 90px;
}

select.conference-form-control {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23057f86' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Helper */
.text-danger {
    color: #dc3545;
}

/* Declaration */
.conference-declaration {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-left: 5px solid #ff9800;
    padding: 18px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 28px;
}

.conference-declaration input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #057f86;
}

.conference-declaration label {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

/* Submit */
.conference-btn-submit {
    display: block;
    width: 100%;
    background-color: #057f86;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(5, 127, 134, 0.35);
}

.conference-btn-submit:hover {
    background-color: #04656b;
    transform: translateY(-2px);
}

/* Success alert */
.conference-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 16px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 1.05rem;
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 900px) {
    .conference-form-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {

    .conference-col-6,
    .conference-col-4 {
        width: 100%;
    }

    .conference-form-header h2 {
        font-size: 1.3rem;
    }

    .conference-card-header {
        padding: 12px 16px;
    }

    .conference-card-body {
        padding: 16px 16px 4px;
    }

    .conference-btn-submit {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .conference-form-container {
        padding: 0 10px 40px;
    }

    .conference-form-header h2 {
        font-size: 1.1rem;
    }

    .conference-form-header p {
        font-size: 0.9rem;
    }

    .conference-form-control {
        font-size: 0.9rem;
    }

    .cf-table th,
    .cf-table td {
        font-size: 0.75rem;
        padding: 6px 4px;
    }
}

/* ─── Form Field Wrappers ─────────────────────────────────── */
.cf-field {
    margin-bottom: 18px;
}

.cf-label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    color: #333;
    margin-bottom: 8px;
}

.cf-hint {
    color: #888;
    font-size: 0.85rem;
    margin: 0 0 8px;
    line-height: 1.4;
}

/* ─── Checkbox / Radio Groups ─────────────────────────────── */
.cf-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 4px 0;
}

.cf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.93rem;
    color: #444;
    cursor: pointer;
    font-weight: 400;
}

.cf-checkbox-label input[type="checkbox"],
.cf-checkbox-label input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #057f86;
    flex-shrink: 0;
    margin: 0;
}

/* Radio-only (no flex-wrap for compact display) */
.cf-radio-group {
    flex-wrap: nowrap;
}

/* Inline Yes/No radio */
.cf-radio-inline {
    display: flex;
    gap: 25px;
    padding: 4px 0;
}

.cf-radio-inline label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.95rem;
    color: #444;
    cursor: pointer;
    font-weight: 400;
}

.cf-radio-inline input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #057f86;
    cursor: pointer;
    margin: 0;
}

/* ─── Other: text input inside checkbox row ───────────────── */
.cf-other-label {
    flex-wrap: nowrap;
}

.cf-other-input {
    border: none;
    border-bottom: 1.5px solid #aaa;
    outline: none;
    font-size: 0.9rem;
    padding: 2px 6px;
    width: 160px;
    color: #333;
    background: transparent;
    transition: border-color 0.2s;
}

.cf-other-input:focus {
    border-bottom-color: #057f86;
}

/* ─── % suffix input ──────────────────────────────────────── */
.cf-input-suffix {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cf-input-suffix .conference-form-control {
    flex: 1;
}

.cf-suffix {
    font-size: 1rem;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
}

/* ─── Dynamic Tables ──────────────────────────────────────── */
.cf-table-wrapper {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.cf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 550px;
}

.cf-table thead tr {
    background-color: #057f86;
    color: #fff;
}

.cf-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.cf-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cf-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.cf-table-num {
    text-align: center;
    color: #057f86;
    font-weight: 600;
    font-size: 0.85rem;
}

.cf-table-input {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid #ccc;
    padding: 6px 4px;
    font-size: 0.88rem;
    background: transparent;
    outline: none;
    color: #333;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cf-table-input:focus {
    border-bottom-color: #057f86;
    background: rgba(5, 127, 134, 0.04);
}

.cf-add-row-btn {
    background: transparent;
    color: #057f86;
    border: 1.5px dashed #057f86;
    padding: 7px 18px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    margin-top: 6px;
    transition: background 0.2s, color 0.2s;
}

.cf-add-row-btn:hover {
    background: #057f86;
    color: #fff;
}

.cf-remove-row-btn {
    background: transparent;
    color: #dc3545;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
    line-height: 1;
}

.cf-remove-row-btn:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* ─── Success Modal ───────────────────────────────────────── */
.cf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cf-modal-overlay.cf-modal-show {
    opacity: 1;
    visibility: visible;
}

.cf-modal-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.cf-modal-overlay.cf-modal-show .cf-modal-box {
    transform: translateY(0);
}

.cf-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1;
}

.cf-modal-box h3 {
    color: #057f86;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.cf-modal-box p {
    color: #555;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
}

.cf-modal-btn {
    background: #057f86;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 1.05rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
}

.cf-modal-btn:hover {
    background: #04656b;
}

/* =============================================
   Layout Overrides for Page with Sidebar
   ============================================= */
.pkp_structure_content.has_sidebar {
    display: flex;
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0px;
    align-items: flex-start;
}

.pkp_structure_main {
    flex: 1 1 100%;
    min-width: 0;
    width: auto !important;
    border-right: 1px solid #eaeaea;
    padding-right: 30px;
    /* override OJS width 100% */
}

.pkp_structure_main::before {
    display: none !important;
    content: none !important;
    /* override OJS decorative line */
}

.pkp_structure_content.has_sidebar::before {
    display: none !important;
    content: none !important;
    /* override OJS decorative sidebar line */
}

.pkp_structure_sidebar {
    flex: 1 1 30%;
    min-width: 250px;
}

@media (max-width: 900px) {
    .pkp_structure_content.has_sidebar {
        flex-direction: column;
    }

    .pkp_structure_main,
    .pkp_structure_sidebar {
        flex: 1 1 100%;
        width: 100% !important;
        border-right: none;
        padding-right: 0;
    }
}