:root {
    --bg-page: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #2d3748;
    --text-muted: #718096;
    --primary-color: #2c5282; /* CA blue */
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
}

.app-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-bg);
    min-height: 100vh;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.banner {
    width: 100%;
    height: 180px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.banner img {
    width: 90%;
    height: 100%;
    max-width: 280px;
    object-fit: contain;
    transform: scale(2.3);
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 15px;
    margin-top: -50px;
}

.profile-pic-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    border: 3px solid #718096;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    bottom: 5px;
    right: -2px;
    color: #1da1f2;
    background: white;
    border-radius: 50%;
    font-size: 1.4rem;
    border: 1px solid white;
}

.header-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.hdr-btn {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.contact-btn {
    background-color: #007bff;
    color: white;
}

.contact-btn .fa-phone-alt {
    transform: rotate(90deg);
}

.wa-btn {
    background-color: #25D366;
    color: white;
}

.save-btn {
    background-color: #e2e8f0;
    color: #4a5568;
}

.profile-info {
    padding: 10px 20px;
}

.profile-info h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a202c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info p {
    font-size: 0.85rem;
    color: #4a5568;
    text-transform: uppercase;
    margin-top: 2px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #cbd5e0;
    margin-top: 15px;
}

.tab-link {
    flex: 1;
    text-align: center;
    padding: 12px 5px;
    text-decoration: none;
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.tab-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.page-content {
    padding: 30px 20px;
}

/* Quick icons */
.quick-icons {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    margin-bottom: 40px;
    padding-left: 10px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #4a5568;
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.icon-circle.address { background: #EA4335; }
.icon-circle.map { background: #34A853; }
.icon-circle.email { background: #EA4335; }

/* Ensure inline SVGs and font icons render visibly inside the circle */
.icon-circle svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: #ffffff !important;
}
.icon-circle i {
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
}

.icon-item span {
    font-size: 0.85rem;
}

.content-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #000;
}

.content-text p {
    font-size: 0.95rem;
    color: #2d3748;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #1a202c;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-group label .required {
    color: #e53e3e;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #fff;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #a0aec0;
}
.form-disclaimer {
    font-size: 0.8rem;
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.4;
}
.form-submit-row {
    display: flex;
    justify-content: flex-end;
}
.btn-submit {
    width: auto;
    padding: 10px 24px;
    background: #637381;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

/* intl-tel-input overrides */
.iti {
    width: 100%;
}

/* Service Cards Layout */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.service-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s ease;
}
.service-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.service-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.service-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}
.service-title {
    font-size: 1.05rem;
    color: #1a202c;
    margin: 0;
    font-weight: 600;
}
.view-more-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.view-more-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Service Modal */
.service-modal { display: none; position: fixed; inset: 0; z-index: 20000; }
.service-modal.show { display: flex; align-items: center; justify-content: center; }
.service-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.service-modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    z-index: 20001;
    max-height: 85vh;
    overflow-y: auto;
    animation: zoomIn 0.2s ease-out;
}
@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.service-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    background: #f1f5f9;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.service-modal-close:hover {
    background: #e2e8f0;
}
.service-modal-title { margin: 0 0 15px 0; font-size: 1.25rem; color: #1a202c; }
.service-modal-image {
    width: 100%;
    /* height: 180px; */
    border-radius: 8px;
    margin-bottom: 15px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #a0aec0;
}
.service-modal-desc { color: #4a5568; line-height: 1.6; font-size: 0.95rem; }

/* Bank Details */
.bank-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}
.bank-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.bank-row:last-child {
    margin-bottom: 0;
}
.bank-row .label {
    width: 140px;
    color: #4a5568;
    font-weight: 500;
}
.bank-row .value {
    color: #1a202c;
    font-weight: 600;
}

.upi-section {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
.upi-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #1a202c;
}
.qr-code {
    background: #fff;
    padding: 10px;
    border: 1px solid var(--border-color);
    display: inline-block;
    border-radius: 8px;
    margin-bottom: 15px;
}
.upi-id {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.upi-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Action Bar & Footer */
.action-bar {
    background-color: #92a4b8;
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.action-bar-btn {
    background-color: #ffffff;
    color: #4a5568;
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.footer {
    text-align: left;
    padding: 15px 20px;
    color: #4a5568;
    font-size: 0.85rem;
    background-color: var(--card-bg);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i { font-size: 1.2rem; }
.toast.success i { color: #48bb78; }
.toast.error i { color: #f56565; }

/* Modal for address display */
.modal { display: none; position: fixed; inset: 0; z-index: 20000; }
.modal.show { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.modal-content {
    position: relative;
    max-width: 420px;
    margin: 8vh auto;
    background: #fff;
    border-radius: 8px;
    padding: 18px 18px 16px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 20001;
}
.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}
#address-modal-title { margin: 0 0 8px 0; font-size: 1.05rem; }
#address-modal-body { color: #2d3748; line-height: 1.5; }
