/**
 * Premium Slider order form style sheet
 *
 * Contains styling specific to the Premium Slider order template.
 * MODIFIED: Flexbox Equal Heights + Motion Effects + Header Alignment
 *
 * @project   WHMCS
 * @version   1.0
 * @author    WHMCS Limited <development@whmcs.com>
 * @copyright Copyright (c) WHMCS Limited 2005-2015
 * @license   http://www.whmcs.com/license/
 * @link      http://www.whmcs.com/
 */

div#order-premium_comparison {
    padding: 0 0 0 0;
    margin: 0 0 30px 0;
    height: 100%;
    width: 100%;
    line-height: 18px;
    font-size: 14px;
    color: #666666;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Text Styling */

#order-premium_comparison a,
#order-premium_comparison a:hover,
#order-premium_comparison a:active,
#order-premium_comparison a:visited,
#order-premium_comparison a:link {
    outline: none;
    transition: all 0.3s ease 0s;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
}
#order-premium_comparison div,
#order-premium_comparison ul,
#order-premium_comparison li {
    padding: 0 0 0 0;
    margin: 0 0 0 0;
}

/* Headings */

#order-premium_comparison h1 {
}
#order-premium_comparison h2 {
}
#order-premium_comparison h3 {
    padding: 0 0 0 0;
    margin: 0;
    font-size: 32px;
    line-height: 38px;
    font-weight: bold;
    color: #333333;
}
#order-premium_comparison h4 {
    padding: 0 0 0 0;
    margin: 10px 0;
    font-size: 24px;
    color: #333333;
}
#order-premium_comparison h5 {
    padding: 0 0 0 0;
    margin: 5px 0;
    font-size: 16px;
    color: #666666;
}

#order-premium_comparison .txt-center {
    text-align: center;
}

#order-premium_comparison .alert {
    margin-top: 70px;
    padding: 15px;
}

#order-premium_comparison .main-container {
    padding: 0 2% 40px 2%;
    margin: 0 auto;
}
#order-premium_comparison .main-container.price-01 {
    font-size: 14px;
    line-height: 17px;
}
#order-premium_comparison .main-container.price-01 h3,
#order-premium_comparison .main-container.price-01 h5 {
    font-weight: normal;
}

/* * ============================================================
 * CONFIGURATION FLEXBOX & ALIGNEMENT
 * ============================================================
 */

#order-premium_comparison .price-table-container {
    padding: 10px 0 0 0;
    margin: 0 0 0 0;
}

/* CONTENEUR PRINCIPAL */
#order-premium_comparison .price-table-container ul {
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
    
    /* Flexbox pour aligner les colonnes */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch; /* Force la même hauteur pour tous les packs */
    gap: 15px;
}

/* ÉLÉMENT DE LISTE (COLONNE) */
#order-premium_comparison .price-table-container ul li {
    padding: 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* CARTE PRODUIT */
#order-premium_comparison .price-table-container .price-table {
    padding: 0;
    margin: 0;
    width: 270px;
    min-width: 270px;
    height: 100%; /* Prend toute la hauteur disponible */
    background: #ffffff;
    
    /* Design moderne */
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    
    /* Ombre douce */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    -webkit-box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    
    /* Animation Motion */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    top: 0;
    
    display: flex;
    flex-direction: column;
}

/* EFFET HOVER (SURVOL) */
#order-premium_comparison .price-table-container .price-table:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 10;
}

/* PLAN ACTIF (POPULAIRE) */
#order-premium_comparison .price-table-container .price-table.active {
    width: 270px;
    border: 2px solid #006699; /* Mise en avant visuelle */
    transform: scale(1.03); /* Légèrement plus grand par défaut */
    z-index: 5;
}
#order-premium_comparison .price-table-container .price-table.active:hover {
    transform: scale(1.03) translateY(-10px);
}

/* HEADER BLEU (EN-TÊTE) */
#order-premium_comparison .price-table-container .price-table .top-head {
    /* Gradients */
    background: #006699;
    background: -moz-linear-gradient(top,  #006699 0%, #004c66 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#006699), color-stop(100%,#004c66));
    background: -webkit-linear-gradient(top,  #006699 0%,#004c66 100%);
    background: -o-linear-gradient(top,  #006699 0%,#004c66 100%);
    background: -ms-linear-gradient(top,  #006699 0%,#004c66 100%);
    background: linear-gradient(to bottom,  #006699 0%,#004c66 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#006699', endColorstr='#004c66',GradientType=0);
    
    border-radius: 8px 8px 0 0;
    
    /* --- ALIGNEMENT DES BOUTONS --- */
    min-height: 165px; /* Hauteur forcée pour aligner les boutons */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Répartit le contenu (Titre en haut, Prix en bas) */
}

#order-premium_comparison .price-table-container .price-table .top-head .top-area {
    padding: 15px 0;
    margin: 0;
    border-bottom: 1px solid #004662;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
#order-premium_comparison .price-table-container .price-table .top-head .top-area h4 {
    margin: 0;
    font-weight: normal;
    color: #ffffff;
    line-height: 29px;
}
#order-premium_comparison .price-table-container .price-table .top-head .top-area p {
    padding: 5px 0 0 0;
    margin: 0;
    color: #80a7ba;
    font-size: 13px;
    line-height: 20px;
}
#order-premium_comparison .price-table-container .price-table .top-head .price-area {
    padding: 15px 0;
    margin: 0;
    border-top: 1px solid #12688d;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    color: #ffffbf;
    font-size: 16px;
}
#order-premium_comparison .price-table-container .price-table .top-head .price-area .price {
    padding: 10px 0 10px 0;
}
#order-premium_comparison .price-table-container .price-table .top-head .price-area .price span {
    font-size: 38px;
}

/* BOUTON COMMANDER */
#order-premium_comparison .price-table-container .order-button,
#order-premium_comparison .price-table-container .order-button:hover {
    padding: 13px 0;
    margin: 10px 25px;
    font-size: 16px;
    color: #ffffff;
    display: block;
    font-weight: normal;
    background: #4a92b7;
    background: linear-gradient(to bottom,  #4a92b7 0%,#006699 100%);
    border-radius: 3px;
    text-decoration: none;
    text-shadow: 0 0 1px rgba(0,0,0,0.4);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.40);
}
#order-premium_comparison .price-table-container .order-button.unavailable:hover {
    cursor: not-allowed;
    background: #404A53;
    background: linear-gradient(to bottom,  #404A53 0%,#949499 100%);
}

/* LISTE DES FONCTIONNALITÉS */
#order-premium_comparison .price-table-container .price-table ul {
    padding: 4px 10px 10px 10px;
    margin: 0;
    list-style: none;
    display: block; /* Reset du flexbox parent */
}
#order-premium_comparison .price-table-container .price-table ul li {
    padding: 17px 0 15px 0;
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #d9d9d9;
    color: #333333;
    text-align: center;
    line-height: 16px;
    font-size: 14px;
    background: none;
    display: block;
}
#order-premium_comparison .price-table-container .price-table ul li a {
    color: #006699;
}
#order-premium_comparison .price-table-container .price-table ul li:last-child {
    border-bottom: 0;
}
#order-premium_comparison .price-table-container .price-table .popular-plan {
    padding: 7px 0 5px 0;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid #004662;
    color: #a3d900;
    font-size: 13px;
    text-transform: uppercase;
}

/* AUTRES ÉLÉMENTS DE PAGE */
#order-premium_comparison .includes-features {
	margin: 0 auto;
	width: 100%;
	max-width: 780px;
	padding-top: 10px;
}
#order-premium_comparison .includes-features .head-area {
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    text-align: center;
    background: url(../img/head-bg.png) no-repeat center center;
    background-size: 100% auto;
}
#order-premium_comparison .includes-features .head-area span {
    padding: 0 20px;
    margin: 0 0 0 0;
    display: inline-table;
}
#order-premium_comparison .main-container.price-01 .includes-features .head-area span {
    background: #f3f3f3;
}
#order-premium_comparison .includes-features ul.list-features {
    padding: 20px 0 0 0;
    margin: 0 0 0 0;
    list-style: none;
}
#order-premium_comparison .includes-features ul.list-features li {
    padding: 0 0 0 22px;
    margin: 5px 0;
    width: 33%;
    display: inline-table;
    background: url(../img/tick.png) no-repeat;
}

/* RESPONSIVE (MOBILES & TABLETTES) */

/* iPad and tablets */
@media (max-width: 991px) {
    #order-premium_comparison .includes-features ul.list-features li {
        width: 48%;
    }
}

/* Mobile only */
@media (max-width: 600px) {
    #order-premium_comparison .price-table-container .price-table {
        margin: 0 0 20px 0;
        width: 100%;
        max-width: 300px;
    }
    #order-premium_comparison .price-table-container .price-table.active {
        margin: 0 0 20px 0;
        width: 100%;
        max-width: 300px;
        transform: none; /* Désactive le zoom sur mobile */
    }
    
    /* Sur mobile, on peut enlever la hauteur forcée de l'en-tête si on veut */
    #order-premium_comparison .price-table-container .price-table .top-head {
        min-height: auto; 
    }
}

/* Very small screens */
@media (max-width: 480px) {
    #order-premium_comparison .includes-features ul.list-features li {
        width: 100%;
    }
}

/* Sidebar */

html, body {
    overflow-x: hidden; /* Prevent scroll on narrow devices */
}

.row-product-selection {
    position: relative;
    left: 0;
    -webkit-transition: all .25s ease-out;
         -o-transition: all .25s ease-out;
            transition: all .25s ease-out;
}

.product-selection-sidebar {
    position: absolute;
    top: 0;
    left: -300px;
    width: 300px;
    display: none;
}

#btnShowSidebar {
    margin: 0 0 20px 0;
}