/* Modern Profile Page Styles */
:root {
    --primary-color: #ff2727;
    --primary-hover: #e02020;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --background-gray: #f8f8f8;
    --white: #fff;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.2s ease;
    --label-color: #888;
}

/* Main Container */
.profile-cont {
    width: 100%;
    min-height: 80vh;
    background-color: var(--background-gray);
    padding: 40px 0;
}

.profile-in {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Profile Header */
.profile-label {
    margin-bottom: 30px;
}

.profile-label h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* Main Grid Layout */
.profile-grid {
    display: flex;
    gap: 30px;
}

/* Not Authenticated State */
.profile-grid.notauth {
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    flex-direction: column;
}

.auth-form {
    max-width: 400px;
    width: 100%;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.ot-fl-auth {
    margin-bottom: 0;
}

.notautha-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 15px;
    text-align: center;
    display: block;
}

.notauth-input {
    margin: 15px 0;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
}

.notauth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 39, 39, 0.1);
}

.notauth-checkbtn {
    width: 100%;
    margin-top: 15px;
}

/* Authenticated State */
.profile-grid-left {
    flex: 0 0 270px;
}

.profile-grid-right {
    flex: 1;
}

/* Left Sidebar */
.profile-left-in {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-left-label {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 5px;
}

.profile-left-label h2 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

.profile-left-label h2 span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Navigation Tabs */
.nav-tab {
    width: 100%;
}

.tab-nav {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 10px 15px;
    font-size: 15px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: block;
}

.tab-nav a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    width: 100%;
    transition: var(--transition);
}

.tab-nav:hover {
    background-color: var(--background-gray);
}

.tab-nav.activetab {
    background-color: var(--primary-color);
}

.tab-nav.activetab a {
    color: var(--white);
}

/* Right Content Area */
.profile-right-in {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

/* Section Headings */
.phone-seperater-l,
.phone-seperater {
    margin-bottom: 20px;
}

.phone-seperater-l p,
.phone-seperater p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}

.phone-seperater-l p:after,
.phone-seperater p:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 50px;
    background-color: var(--primary-color);
}

.phone-seperater {
    margin-top: 40px;
}

/* Form Elements */
.ot-input-field {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
}

.input-field {
    margin-bottom: 20px;
    width: 100%;
}

.input-field label {
    display: block;
    font-size: 14px;
    color: var(--label-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.inputflds {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.inputflds:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 39, 39, 0.1);
}

.inputflds:read-only {
    background-color: var(--background-gray);
    cursor: not-allowed;
}

/* Phone Number Input with Edit Button - FIXED */
.input-field.phone-field {
    position: relative;
}

.phone-field .inputflds {
    padding-right: 70px; /* Make space for the edit button */
}

#edit-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    font-size: 14px;
    padding: 5px 10px;
    cursor: pointer;
    margin-top: 13px; /* Adjust to align with input field */
    border-radius: 4px;
    transition: var(--transition);
}

#edit-btn:hover {
    background-color: rgba(255, 39, 39, 0.1);
}

#submit-btn {
    display: block;
    margin-top: 15px;
    width: auto;
}

/* Buttons */
.check-cobtn {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.check-cobtn:hover {
    background-color: var(--primary-hover);
}

.check-cobtn:disabled {
    background-color: var(--light-text);
    cursor: not-allowed;
    opacity: 0.7;
}

.check-cobtn a {
    color: var(--white);
    text-decoration: none;
    display: block;
}

.sp-btn {
    margin-top: 30px;
}

.incomplete-address {
    min-width: 150px;
}

/* Select Dropdown */
select.inputflds {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* Form Row */
.form-row {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .profile-grid {
        flex-direction: column;
    }
    
    .profile-grid-left {
        flex: 0 0 auto;
    }
    
    .profile-left-in {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .profile-cont {
        padding: 20px 0;
    }
    
    .profile-right-in {
        padding: 20px;
    }
    
    .ot-input-field {
        flex-direction: column;
        gap: 0;
    }
    
    .profile-label h1 {
        font-size: 22px;
    }
    
    .phone-seperater-l p, 
    .phone-seperater p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .profile-in {
        padding: 0 15px;
    }
    
    .profile-label h1 {
        font-size: 20px;
    }
    
    .profile-left-in,
    .profile-right-in {
        padding: 15px;
    }
    
    .check-cobtn {
        width: auto;
    }
}
