/* ============================================
   Common Styles for Vapi Callback Pages
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   intl-tel-input Styles (for callback page)
   ============================================ */
.iti {
    width: 100%;
}

.iti__country-list {
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #89949d61;
    max-height: 200px;
    overflow-y: auto;
    background-color: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 116, 81, 0.6) #f1f1f1;
}

.iti__country-list::-webkit-scrollbar {
    width: 8px;
}

.iti__country-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.iti__country-list::-webkit-scrollbar-thumb {
    background: rgba(245, 116, 81, 0.6);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.iti__country-list::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 116, 81, 0.8);
}

.iti__flag {
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.2.16/build/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.2.16/build/img/flags@2x.png");
    }
}

.iti__country {
    padding: 8px 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: rgba(63, 58, 56, 1);
    border-bottom: 1px solid #f0f0f0;
}

.iti__country:hover {
    background-color: rgba(245, 116, 81, 0.1);
}

.iti__country--highlight {
    background-color: rgba(245, 116, 81, 0.2);
}

.iti__selected-flag {
    background-color: #ffffff;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 0 8px;
}

.iti__arrow {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(63, 58, 56, 1);
    margin-left: 4px;
}

.iti__country-name {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: rgba(63, 58, 56, 1);
}

.iti__dial-code {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: rgba(245, 116, 81, 1);
    font-weight: 500;
}

.iti__search-input {
    background-color: #ffffff !important;
    border: 1px solid #89949d61 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px !important;
    color: rgba(63, 58, 56, 1) !important;
    outline: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.iti__search-input:focus {
    border-color: rgba(245, 116, 81, 1) !important;
    box-shadow: 0 0 0 2px rgba(245, 116, 81, 0.1) !important;
}

.iti__search-input::placeholder {
    color: rgba(63, 58, 56, 0.6) !important;
    font-family: 'Roboto', sans-serif !important;
}

.iti--allow-dropdown .iti__flag-container {
    border-radius: 8px 0 0 8px;
}

/* ============================================
   Form Input Styles (for callback page)
   ============================================ */
.phone-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 20px;
    border: 1px solid #89949d61;
    border-radius: 0 8px 8px 0;
    background: #ffffff;
    color: rgba(63, 58, 56, 1);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: all 0.2s;
}

.phone-input:focus {
    border-color: rgba(245, 116, 81, 1);
    box-shadow: 0 0 0 2px rgba(245, 116, 81, 0.1);
}

.name-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #89949d61;
    border-radius: 8px;
    background: #ffffff;
    color: rgba(63, 58, 56, 1);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.name-input:focus {
    border-color: rgba(245, 116, 81, 1);
    box-shadow: 0 0 0 2px rgba(245, 116, 81, 0.1);
}

.email-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #89949d61;
    border-radius: 8px;
    background: #ffffff;
    color: rgba(63, 58, 56, 1);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.email-input:focus {
    border-color: rgba(245, 116, 81, 1);
    box-shadow: 0 0 0 2px rgba(245, 116, 81, 0.1);
}

.email-input:-webkit-autofill,
.email-input:-webkit-autofill:hover,
.email-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
    box-shadow: 0 0 0px 1000px #ffffff inset;
    -webkit-text-fill-color: rgba(63, 58, 56, 1);
    transition: background-color 9999s ease-in-out 0s;
}

.email-input:-moz-autofill {
    box-shadow: 0 0 0px 1000px #ffffff inset;
    -moz-text-fill-color: rgba(63, 58, 56, 1);
}

/* ============================================
   Button Styles
   ============================================ */
.submit-button {
    width: 100%;
    height: 48px;
    background-color: rgba(245, 116, 81, 1);
    color: white;
    font-weight: 500;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-button:hover {
    background-color: rgba(245, 116, 81, 0.9);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.continue-btn {
    width: 100%;
    padding: 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.continue-btn:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.continue-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============================================
   Error Message Styles
   ============================================ */
.error-message {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: #dc2626;
    font-weight: 400;
}

.error-message.show {
    display: block;
}

/* ============================================
   Service Categories Page Styles
   ============================================ */
.service-categories-body {
    margin: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f5f7fa 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 0;
    padding-bottom: 0;
    position: relative;
}

.service-categories-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(33, 150, 243, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.service-categories-body > * {
    position: relative;
    z-index: 1;
}

.service-categories-body .logo-header {
    position: relative;
    z-index: 10;
}

.service-categories-body .service-categories-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 40px;
}

.service-categories-header {
    text-align: center;
    margin-bottom: 20px;
}

.service-categories-header h1 {
    color: rgba(245, 116, 81, 1);
    font-size: 32px;
    font-weight: 500;
    line-height: 38px;
    margin-bottom: 8px;
}

.service-categories-header p {
    color: #666;
    font-size: 16px;
    margin-bottom: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Colored backgrounds for cards - cycling through colors */
.category-card:nth-child(4n+1) {
    background: #e8f5e9;
    border-color: #c8e6c9;
}

.category-card:nth-child(4n+2) {
    background: #fce4ec;
    border-color: #f8bbd0;
}

.category-card:nth-child(4n+3) {
    background: #e3f2fd;
    border-color: #90caf9;
}

.category-card:nth-child(4n+4) {
    background: #fff9c4;
    border-color: #fff59d;
}

.category-card:hover {
    border-color: rgba(245, 116, 81, 1);
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.category-card:nth-child(4n+1):hover {
    background: #c8e6c9;
}

.category-card:nth-child(4n+2):hover {
    background: #f8bbd0;
}

.category-card:nth-child(4n+3):hover {
    background: #90caf9;
}

.category-card:nth-child(4n+4):hover {
    background: #fff59d;
}

.category-card.selected {
    border-color: rgba(245, 116, 81, 1);
    background: rgba(245, 116, 81, 1);
    color: white;
    box-shadow: 0 8px 20px rgba(245, 116, 81, 0.4);
    transform: translateY(-4px);
}

.category-card.selected .category-description {
    color: rgba(255, 255, 255, 0.95);
}

.category-image {
    width: 100%;
    height: 140px;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.category-image svg {
    width: 100%;
    height: 100%;
    display: block;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
    display: block;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #333;
}

.category-card.selected .category-title {
    color: white;
}

.category-description {
    font-size: 14px;
    color: #666;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 100%;
}

.category-card.selected .category-description {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Callback & Thankyou Page Common Styles
   ============================================ */
.callback-body,
.thankyou-body {
    margin: 0;
    font-weight: 400;
}

.callback-table,
.thankyou-table {
    border-collapse: separate;
    border-spacing: 0;
    max-width: 600px;
    padding: 0 20px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

/* Service Categories page - wider layout */
.service-categories-body .callback-table {
    max-width: 100%;
    padding: 0;
}

/* ============================================
   Service Categories Product Cards Styles (New Design)
   ============================================ */

.main-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 60px;
    position: relative;
    z-index: 1;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}

/* Center items when there is only 1 item */
.products-container.single-item {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 400px;
    margin: 0 auto;
}

/* Proper layout for 2 items */
.products-container.two-items {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.product-card {
    max-width: 400px;
    width: 100%;
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-card.apartment {
    background: linear-gradient(135deg, #E8F8F0 0%, #D4F1E0 100%);
}

.product-card.apartment:hover {
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.25), 0 8px 25px rgba(76, 175, 80, 0.15);
}

.product-card.hotel {
    background: linear-gradient(135deg, #FDF0F0 0%, #FCE4EC 100%);
}

.product-card.hotel:hover {
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.25), 0 8px 25px rgba(220, 38, 38, 0.15);
}

.product-card.school {
    background: linear-gradient(135deg, #E8F0F8 0%, #D6E4F0 100%);
}

.product-card.school:hover {
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.25), 0 8px 25px rgba(33, 150, 243, 0.15);
}

.product-illustration {
    width: 100%;
    height: 240px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-illustration {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.product-illustration::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.product-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-illustration img {
    transform: scale(1.1);
}

.product-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-icon {
    transform: translateY(-4px) scale(1.1);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.product-icon svg {
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.5px;
    line-height: 1.2;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
}

.product-card:hover .product-title[data-is-dark="true"] {
    color: #ffffff !important;
}

.product-card:hover .product-title[data-is-dark="false"] {
    color: #000000 !important;
}

.product-description {
    font-size: 16px;
    line-height: 1.75;
    color: #4a4a4a;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.2px;
    max-width: 100%;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

@media (max-width: 1024px) {
    .main-content {
        margin: 25px auto;
        padding: 0 40px;
    }

    .products-container {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 32px;
    }

    .product-card {
        max-width: 100%;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin: 20px auto;
        padding: 0 24px;
    }

    .products-container {
        gap: 28px;
    }

    .product-card {
        padding: 40px 32px;
        border-radius: 20px;
    }

    .product-illustration {
        height: 200px;
        border-radius: 16px;
        margin-bottom: 28px;
    }

    .product-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 24px;
    }

    .product-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .product-description {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .main-content {
        margin: 15px auto;
        padding: 0 20px;
    }

    .product-card {
        padding: 32px 24px;
    }

    .product-illustration {
        height: 180px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-description {
        font-size: 14px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (min-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .service-categories-container {
        padding: 24px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-categories-header h1 {
        font-size: 24px;
    }

    .category-card {
        padding: 16px 12px;
        min-height: 120px;
    }

    .category-icon {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .category-title {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .category-description {
        font-size: 11px;
    }
}

/* Service Categories Footer */
.service-categories-footer {
    padding: 20px 20px 0 20px;
    margin-top: 20px;
    margin-bottom: 0;
    text-align: center;
}

.service-categories-footer table {
    margin: 0 auto;
    margin-bottom: 0;
}

.service-categories-footer td {
    text-align: center;
    padding-bottom: 0;
}

.service-categories-footer tr:last-child td {
    padding-bottom: 0;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .service-categories-footer {
        padding: 15px 15px 0 15px;
        margin-top: 20px;
        margin-bottom: 0;
    }

    .service-categories-footer table {
        width: 100% !important;
    }

    .service-categories-footer td {
        font-size: 13px !important;
    }
}

