/**
 * ========================================================================
 * DOMAIN REGISTRATION PAGE REDESIGN - NAMECHEAP STYLE
 * ========================================================================
 * Transforms large cards into compact pricing table
 * Makes domain search prominent at top
 * Shows many TLDs in compact rows
 */

/* ========================================================================
   OPTION 1: CSS-ONLY SOLUTION (Transform existing layout)
   ======================================================================== */

/**
 * This CSS transforms the current card layout into a compact table
 * without modifying the template file
 */

/* Move hero section up and make it compact */
.about-wrp.bg-purple {
    padding: 40px 0 30px !important;
}

.about-wrp .abt-bx h1 {
    font-size: 36px !important;
    margin-bottom: 10px !important;
}

.about-wrp .abt-bx h6 {
    font-size: 16px !important;
    margin-bottom: 15px !important;
}

/* Make domain search more prominent */
.online-business-wpr {
    padding: 0 !important;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.online-business-box {
    background: #ffffff !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    padding: 30px !important;
}

.online-business-box h3 {
    font-size: 24px !important;
    color: #2F1C6A !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
}

/* Transform domain cards into compact table-like rows */
.domain-pricing-section {
    padding: 60px 0 !important;
}

.domain-pricing-section .titlebar h2 {
    font-size: 28px !important;
    margin-bottom: 10px !important;
}

.domain-pricing-section .titlebar p {
    font-size: 16px !important;
    margin-bottom: 40px !important;
}

/* Transform cards into compact rows */
.domain-pricing-section .row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.domain-pricing-section .col-lg-4,
.domain-pricing-section .col-md-6 {
    width: 100% !important;
    max-width: 900px;
    margin: 0 auto 0 auto !important;
    padding: 0 !important;
}

.domain-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 25px !important;
    margin-bottom: 1px !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e8eaed !important;
    border-bottom: none !important;
    min-height: auto !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.domain-card:first-child {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.domain-card:last-child {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    border-bottom: 1px solid #e8eaed !important;
}

.domain-card:hover {
    background: #f8f9fa !important;
    border-color: #ff6311 !important;
    box-shadow: 0 2px 12px rgba(255, 99, 17, 0.1) !important;
    position: relative;
    z-index: 5;
}

/* Featured card styling */
.domain-card.featured {
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%) !important;
    border-color: #ff6311 !important;
    border-width: 2px !important;
}

/* Domain card header - Left aligned */
.domain-card-header {
    flex: 0 0 120px;
    margin: 0 !important;
    padding: 0 !important;
}

.domain-name {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #2F1C6A !important;
    margin: 0 !important;
}

/* Domain price - Center */
.domain-card-price {
    flex: 0 0 180px;
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
}

.price-amount {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ff6311 !important;
    display: block !important;
    margin-bottom: 2px !important;
}

.price-period {
    font-size: 13px !important;
    color: #666 !important;
    display: block !important;
}

/* Hide divider */
.domain-divider {
    display: none !important;
}

/* Description - Hide or minimize */
.domain-card-desc {
    flex: 1;
    margin: 0 !important;
    padding: 0 20px !important;
    display: none !important;
    /* Hide long descriptions */
}

/* Or show short version only */
.domain-card-desc p {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.domain-card-desc strong {
    display: none !important;
    /* Hide "Commercial Domain" etc */
}

/* Order button - Right aligned */
.btn-domain-order {
    flex: 0 0 140px;
    padding: 12px 24px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    background: #ff6311 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    text-align: center !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
}

.btn-domain-order:hover {
    background: #e55a0f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 99, 17, 0.3) !important;
}

/* International domains section - same compact style */
.pricing-wrp.bg-purple .row {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.pricing-wrp.bg-purple .col-lg-3 {
    width: auto !important;
    flex: 0 0 calc(25% - 15px);
    max-width: 280px;
    margin: 0 !important;
}

.domain-price-box {
    background: #ffffff;
    padding: 25px !important;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.domain-price-box:hover {
    border-color: #ff6311;
    box-shadow: 0 8px 20px rgba(255, 99, 17, 0.15);
    transform: translateY(-5px);
}

.domain-price-box h3 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #2F1C6A !important;
    margin-bottom: 8px !important;
}

.domain-type {
    font-size: 13px !important;
    color: #666 !important;
    margin-bottom: 15px !important;
}

.price-tag .period {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.price-tag .amount {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #ff6311;
    margin-bottom: 15px;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .domain-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px !important;
    }

    .domain-card-header,
    .domain-card-price,
    .domain-card-desc {
        flex: 1 !important;
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 12px !important;
    }

    .btn-domain-order {
        width: 100% !important;
        flex: 1 !important;
    }

    .pricing-wrp.bg-purple .col-lg-3 {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .domain-card-desc {
        display: none !important;
        /* Always hide on mobile */
    }

    .pricing-wrp.bg-purple .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* ========================================================================
   BONUS: SALE BADGES & DISCOUNTS (For future dynamic pricing)
   ======================================================================== */

/* Sale badge */
.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff0000;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Original price strikethrough */
.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-right: 10px;
}

/* Discount percentage */
.price-discount {
    background: #ff0000;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

/* Example usage in HTML:
<div class="domain-card-price">
    <span class="price-original">TZS 30,000</span>
    <span class="price-amount">23,500</span>
    <span class="price-discount">-22%</span>
    <span class="price-period">/Annually</span>
</div>
*/


/* ========================================================================
   TABLE VERSION (Alternative approach)
   ======================================================================== */

/**
 * This creates actual table styling (uncomment to use)
 * Best for: Maximum compactness like Namecheap
 */

/*
.domain-pricing-table {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.domain-pricing-table-header {
    display: flex;
    background: #f8f9fa;
    padding: 15px 25px;
    border-bottom: 2px solid #e8eaed;
    font-weight: 700;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.domain-pricing-table-row {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.domain-pricing-table-row:hover {
    background: #f8f9fa;
}

.domain-pricing-table-col-tld {
    flex: 0 0 150px;
    font-size: 18px;
    font-weight: 700;
    color: #2F1C6A;
}

.domain-pricing-table-col-price {
    flex: 0 0 180px;
    font-size: 20px;
    font-weight: 700;
    color: #ff6311;
}

.domain-pricing-table-col-desc {
    flex: 1;
    font-size: 14px;
    color: #666;
}

.domain-pricing-table-col-action {
    flex: 0 0 120px;
    text-align: right;
}
*/