/* dashboard profile card */


/* end dashboard profile card */

/* Edit Profile */
.form-control {
    font-size: 13px !important;
    padding: 7px 7px !important;
}

.form-select {
    font-size: 13px !important;
    padding: 7px 7px !important;
}

.form-label {
    font-size: 13px !important;
}

.family-row {
    display: flex;
    gap: 20px;
}

.family-left {
    flex: 1;
}

.family-right {
    width: 220px;
    /* adjust as needed */
}

.profile-sidebar {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 10px;
    background: #fff;
}

.profile-photo-container {
    position: relative;
    width: 100%;
    margin: 0 auto 20px;
}

.profile-photo {
    width: 100%;
    background: linear-gradient(135deg, #014f86 0%, #014f86 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    overflow: hidden;
}

.profile-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.upload-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    background: #014f86;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border: 3px solid white;
}

.add-photo-btn {
    width: 100%;
    padding: 10px;
    border: 2px dashed #00c9a7;
    background: white;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.section-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 15px;
    margin-bottom: 5px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

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

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.location-search-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.location-search-wrapper .input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

#searchInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.suggestions {
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 6px 6px;
    position: absolute;
    z-index: 999;
}

.suggestions div {
    padding: 8px;
    cursor: pointer;
}

.suggestions div:hover {
    background: #f0f0f0;
}

.locate-btn {
    background: white;
    border: 2px solid #333;
    color: #333;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
}

.locate-btn:hover {
    background: #333;
    color: white;
}


@media (max-width: 768px) {

    .form-grid-2,
    .form-grid-3,
    .form-grid-4 {
        grid-template-columns: 1fr;
    }
}

.uploaded-photos {
    margin-top: 15px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 per row */
    gap: 8px;
    /* Allow grid items to respect DOM order for drag-and-drop */
    grid-auto-flow: row;
}

.photo-grid img {
    width: 100%;
    height: 80px;
    /* same size for consistency */
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform .2s ease;
}

/* THUMB CLASS REMOVE OR MERGE */
.photo-grid img.thumb {
    width: 100%;
    /* grid auto adjust karega */
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.photo-grid img:hover {
    transform: scale(1.05);
}

/* Photo item with delete button */
.photo-item {
    position: relative;
    /* Ensure grid items respect DOM order - no explicit grid positioning */
    grid-column: auto;
    grid-row: auto;
}

.delete-photo-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.delete-photo-btn:hover {
    background-color: rgba(220, 53, 69, 1);
}

.delete-photo-btn i {
    font-size: 10px;
}

.delete-photo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ensure both columns have equal height and proper alignment */
.card-body .row {
    display: flex;
}

.card-body .row>[class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Make sure the Health Issues select stretches to fill available space */
.card-body .row .flex-grow-1 select {
    height: 100%;
}

.col-md-6 {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}
/* end edit profile */

/* Membership Page - Gradient Button Style - matching auth-login.php */
.btn-outline-primary {
    background: linear-gradient(135deg, #1b4e4f 0%, #cda053 100%) !important;
    border: none !important;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(27, 78, 79, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #fff !important;
}

.btn-outline-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-outline-primary:hover::before {
    left: 100%;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 78, 79, 0.4);
    background: linear-gradient(135deg, #154a4b 0%, #c59a4a 100%) !important;
    color: #fff !important;
    border: none !important;
}

.btn-outline-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(27, 78, 79, 0.3);
    color: #fff !important;
    border: none !important;
}

.btn-outline-primary:focus {
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(27, 78, 79, 0.3) !important;
}