* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1a1a1a;
    overflow-x: hidden;
    padding-bottom: 0;
    background: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== CUSTOM POPUP MODAL ===== */
.custom-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.custom-popup.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-popup-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    border: 2px solid #000;
}

.custom-popup-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-popup-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.custom-popup-header h3 {
    margin: 0;
    color: #000;
    font-size: 1.5rem;
}

.custom-popup-body {
    padding: 2rem;
}

.custom-popup-body p {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
}

.custom-popup-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}

.popup-btn {
    background: #000;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Popup Types */
.custom-popup.error .custom-popup-icon {
    color: #ff0000;
}

.custom-popup.success .custom-popup-icon {
    color: #4caf50;
}

.custom-popup.info .custom-popup-icon {
    color: #2196f3;
}

/* ===== TOP NAVBAR (DESKTOP) ===== */
.navbar {
    background: linear-gradient(135deg, #000000 0%, #2d2d2d 100%);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.nav-logo-text {
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.logo-main {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.2;
}

.logo-notary {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
    font-style: italic;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-item:hover {
    color: #c0c0c0;
    transform: translateY(-2px);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* ===== BOTTOM NAVIGATION (MOBILE) ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #000000 0%, #2d2d2d 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 0.5rem 0;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0;
}

.bottom-nav-item {
    flex: 1;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    border-radius: 8px 8px 0 0;
}

.bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #c0c0c0;
    transform: translateY(-3px);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: white;
    padding: 140px 1.5rem 80px;
    text-align: center;
    margin-top: 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="0.5" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BUTTONS ===== */
.cta-btn {
    display: inline-block;
    padding: 14px 40px;
    background: white;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-btn:hover {
    background: black;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.cta-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: #f8f8f8;
    padding: 60px 1rem;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #000;
}

.about h2 {
    color: #000;
    margin-bottom: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image {
    position: relative;
}

.profile-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid #000;
}

.about-text {
    color: #333;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-highlight {
    background: #f5f5f5;
    padding: 1.5rem;
    border-left: 3px solid #000;
    margin: 2rem 0;
}

.about-highlight h3 {
    color: #000;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.about-contact {
    background: #1a1a1a;
    color: white;
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 2rem;
}

.about-contact a {
    color: #c0c0c0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-contact a:hover {
    color: white;
}

/* ===== SERVICES INTRO SECTION ===== */
.services-intro {
    background: white;
    padding: 60px 1rem;
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.category-card {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    padding: 2rem;
}

.category-content h3 {
    color: #000;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.category-content p {
    color: #666;
    line-height: 1.7;
}

/* ===== DETAILED SERVICES SECTION ===== */
.services-detailed {
    background: #f8f8f8;
    padding: 60px 1rem;
}

.service-detail-card {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #000;
    transition: all 0.3s ease;
}

.service-detail-card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transform: translateX(5px);
}

.service-detail-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-detail-card h3 {
    color: #000;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-detail-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-list {
    margin-top: 1.5rem;
}

.service-list h4 {
    color: #000;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.service-list ul {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
}

/* ===== GENERAL SECTION STYLES ===== */
section {
    padding: 50px 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 3rem;
    text-align: center;
    color: #000;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #000;
}

/* ===== PRICING SECTION ===== */
.pricing {
    background: white;
    padding: 60px 1rem;
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.pricing-info {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #000;
}

.pricing-info p {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.pricing-info strong {
    color: #000;
}

/* ===== BOOKING SECTION ===== */
.booking {
    background: #f8f8f8;
    padding: 60px 1rem;
}

.booking-intro {
    margin-bottom: 3rem;
}

.booking-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.booking-form {
    max-width: 800px;
    margin: 3rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e0e0e0;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 600;
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== SERVICE SELECTION ===== */
.services-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.service-item {
    background: #f8f8f8;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.service-item:has(input:checked) {
    background: #e8e8e8;
    border-color: #000;
}

.service-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    width: 100%;
}

.service-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.service-name {
    flex: 1;
    color: #000;
    font-weight: 600;
}

.service-price {
    color: #000;
    font-weight: bold;
    white-space: nowrap;
}

.service-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #d0d0d0;
}

.service-details.hidden {
    display: none;
}

.page-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-input-group label {
    margin: 0;
    white-space: nowrap;
}

.page-input {
    width: 100px;
    padding: 8px;
}

.selected-services-box {
    background: #e8f5e9;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    border-left: 4px solid #000;
}

.selected-services-box.hidden {
    display: none;
}

.selected-services-box h4 {
    color: #000;
    margin-bottom: 1rem;
}

#selectedServicesList {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selected-service-item {
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== RADIO BUTTONS ===== */
.radio-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

/* ===== ADDRESS SECTION ===== */
.address-section {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
    border-left: 4px solid #000;
}

.address-section.hidden {
    display: none;
}

/* ===== PRICE SUMMARY ===== */
.price-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 2rem 0;
    border: 2px solid #000;
}

.price-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #333;
}

.price-summary-row.total {
    border-top: 2px solid #000;
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: #000;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: white;
    padding: 60px 1rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: #000;
}

.contact-card h3 {
    color: #000;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-card a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #000;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #000000 0%, #2d2d2d 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid #000;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.close:hover {
    color: #000;
}

#card-element {
    border: 2px solid #d0d0d0;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-family: inherit;
}

#card-element.StripeElement--focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* ===== MESSAGE STYLES ===== */
.error-message {
    display: none;
    background: #ff0000;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.error-message.show {
    display: block;
}

.info-badge {
    background: #f0f0f0;
    color: #000;
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid #000;
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN - DESKTOP ===== */
@media (min-width: 769px) {
    .navbar {
        display: block;
    }

    .bottom-nav {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }

    .hero {
        padding: 140px 1.5rem 80px;
        margin-top: 60px;
    }
}

/* ===== RESPONSIVE DESIGN - TABLET & BELOW ===== */
@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }

    .hero {
        padding: 100px 1rem 60px;
        margin-top: 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-container {
        padding: 2rem;
    }

    .service-categories {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 1.5rem;
    }

    .modal-content {
        margin: 30% auto;
        max-width: 90vw;
        padding: 1.5rem;
    }

    .page-input-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .custom-popup-content {
        width: 95%;
    }
    
    .custom-popup-header {
        padding: 1rem 1.5rem;
    }
    
    .custom-popup-body {
        padding: 1.5rem;
    }
    
    .custom-popup-footer {
        padding: 1rem 1.5rem;
    }
    
    .nav-logo {
        gap: 0.5rem;
    }
    
    .nav-logo-icon {
        font-size: 2rem;
    }
    
    .logo-main {
        font-size: 0.9rem;
    }
    
    .logo-sub {
        font-size: 0.75rem;
    }
    
    .logo-notary {
        font-size: 0.65rem;
    }
}

/* ===== RESPONSIVE DESIGN - MOBILE ===== */
@media (max-width: 480px) {
    .nav-logo-icon {
        font-size: 1.8rem;
    }

    .logo-main {
        font-size: 0.75rem;
    }
    
    .logo-sub {
        font-size: 0.65rem;
    }
    
    .logo-notary {
        font-size: 0.55rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .about-container {
        padding: 1.5rem;
    }

    .service-detail-card {
        padding: 1.5rem;
    }

    .booking-form {
        padding: 1rem;
        margin: 2rem 0.75rem;
    }

    .booking-banner {
        height: 200px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-checkbox-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .service-price {
        font-size: 0.9rem;
    }
    
    .custom-popup-header h3 {
        font-size: 1.2rem;
    }
    
    .custom-popup-body p {
        font-size: 1rem;
    }
}