/* ACCOUNT FORM CONTAINER */
.page-content {
    background: #f6f7fb;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;   /* 🔥 stops full stretch */
}
/* HEADER */
.page-header h2 {
    color: #204028;
    font-weight: 700;
}
.page-header small {
    color: #6c757d;
}
/* FORM CARD*/
.form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
/* SECTION TITLES */
.form-section-title {
    margin: 20px 0 10px;
    color: #204028;
    font-weight: 600;
    background: #f9fafb;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 4px solid #204028;
    padding-left: 10px;
}
/* GRID SYSTEM (MATCH LEAD) */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px;
}
/* single column (textarea etc) */
.form-grid.single {
    grid-template-columns: 1fr;
}
/* LABELS & INPUTS */
label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}
input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 14px;
    background: #ffffff;
}
textarea {
    min-height: 90px;
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #204028;
}
/* FORM ACTIONS */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}
/* BUTTONS (CRM THEME) */
.btn-primary {
    background-color: #204028;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.btn-primary:hover {
    background-color: #16301e;
}
/* Cancel */
.btn-cancel {
    background: #f3f4f6;
    color: #374151;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #d1d5db;
}
.btn-cancel:hover {
    background: #e5e7eb;
}
/* Edit */
.btn-edit {
    background-color: #facc15;
    color: #000;
    border: none;
}
.btn-edit:hover {
    background-color: #e6c200;
}
/* Delete */
.btn-danger {
    background-color: #8b1d1d;
    color: #ffffff;
    border: none;
}
.btn-danger:hover {
    background-color: #6f1515;
}
/* ===============================
   FIX FORM ALIGNMENT (CRITICAL)
================================ */

/* FORM CENTER */
.form-card {
    max-width: 1000px;
    margin: 0 auto;      /* 🔥 center form */
}

/* EXTRA SAFETY */
.dashboard-content {
    overflow-x: hidden;
}
.page-header {
    max-width: 1000px;
    margin: 0 auto 10px;
}
/* ZOHO STYLE SECTION SPACING */

/* DROPDOWN IMPROVEMENT */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 20 20'><path d='M5 7l5 5 5-5H5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px; /* space for arrow */
    background-size: 16px;
}

/* INPUT GROUP POLISH */
.form-grid input,
.form-grid select {
    transition: 0.2s ease;
}

.form-grid input:focus,
.form-grid select:focus {
    box-shadow: 0 0 0 2px rgba(32,64,40,0.1);
}
/* ACCOUNT HEADER */
.account-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.account-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* 🔥 makes it round */
    object-fit: cover;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: 0.2s ease;
}

.account-image img:hover {
    opacity: 0.8;
}

.account-basic {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* ZOHO STYLE INPUT HEIGHT */
input, select {
    height: auto;
    min-height: 42px;
    line-height: 1.5;
    padding: 10px 12px;
}

/* SECTION DIVIDER LIKE ZOHO */
select {
    display: flex;
    align-items: center;
}
select, input {
    font-family: inherit;
}
/* ===== ACCOUNT AVATAR (ZOHO STYLE BUILDING) ===== */

.account-image {
    position: relative;
    width: 80px;
    height: 80px;
    cursor: pointer;
}

/* Default circle */
.account-default {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

/* Building body */
.building {
    width: 28px;
    height: 40px;
    background: #9ca3af;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
}

/* Windows grid */
.windows {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 30px;
    background-image:
        linear-gradient(#e5e7eb 2px, transparent 2px),
        linear-gradient(90deg, #e5e7eb 2px, transparent 2px);
    background-size: 8px 8px;
}

/* Uploaded image */
.account-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Camera icon */
.account-edit {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-size: 12px;
}
/* =========================================
   CHECKBOX
========================================= */

.checkbox-field{
    justify-content:center;
}

.checkbox-label{
    display:flex;
    align-items:center;
    gap:12px;

    margin-top:34px;

    font-weight:600;
}

.checkbox-label input[type="checkbox"]{

    appearance:auto !important;
    -webkit-appearance:checkbox !important;

    width:18px;
    height:18px;

    margin:0;
}
