/* Main stylesheet */

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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #4a4aff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2828d9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: #3e1e68;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    font-weight: 600;
}

nav ul li a:hover {
    color: #f5a623;
}

.language-selector select {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
}

/* Checkout steps */
.checkout-steps {
    background-color: #f9f9f9;
    padding: 20px 0;
    border-bottom: 1px solid #e6e6e6;
}

.checkout-steps ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkout-steps li {
    display: flex;
    align-items: center;
    position: relative;
    color: #777;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.checkout-steps li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #e0e0e0;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
}

.checkout-steps li.active {
    color: #4a4aff;
}

.checkout-steps li.active span {
    background-color: #4a4aff;
}

.checkout-steps li.completed {
    color: #28a745;
}

.checkout-steps li.completed span {
    background-color: #28a745;
}

.checkout-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 0;
    width: calc(100% - 40px);
    height: 2px;
    background-color: #e0e0e0;
    z-index: -1;
}

.checkout-steps li.completed:not(:last-child)::after {
    background-color: #28a745;
}

/* Main content */
main {
    padding: 40px 0;
}

.checkout-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.checkout-content {
    flex: 1;
    min-width: 0;
    padding: 0 15px;
}

.checkout-sidebar {
    width: 350px;
    padding: 0 15px;
}

/* Product cards */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.product-card {
    width: calc(33.333% - 30px);
    margin: 15px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-header {
    padding: 20px;
    background-color: #4a4aff;
    color: #fff;
    text-align: center;
}

.product-header h3 {
    margin: 0;
    font-size: 20px;
}

.product-tagline {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.8;
}

.product-pricing {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.price-from {
    font-size: 12px;
    color: #777;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 5px 0;
}

.cycle {
    font-size: 14px;
    color: #777;
}

.product-features {
    padding: 20px;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.product-select {
    padding: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-row {
    display: flex;
    margin: 0 -10px;
}

.form-row .form-group {
    flex: 1;
    padding: 0 10px;
}

.form-help {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: #4a4aff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2828d9;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #ccc;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #bd2130;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Order summary */
.order-summary {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.order-totals {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.order-totals > div {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.subtotal {
    color: #777;
}

.discount {
    color: #28a745;
}

.total {
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.promo-code {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.promo-code h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.promo-form {
    display: flex;
}

.promo-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.promo-form button {
    padding: 10px 15px;
    background-color: #4a4aff;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

#promo-message {
    margin-top: 10px;
}

/* Payment methods */
.payment-methods {
    margin-bottom: 30px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.payment-method:hover {
    border-color: #4a4aff;
}

.payment-method input {
    margin-right: 15px;
}

.payment-method label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
}

.payment-method img {
    height: 30px;
    margin-right: 10px;
}

/* Domain options */
.domain-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.domain-tabs li {
    list-style: none;
    margin-right: 20px;
}

.domain-tabs li a {
    display: block;
    padding: 10px 0;
    color: #777;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.domain-tabs li.active a {
    color: #4a4aff;
    border-bottom-color: #4a4aff;
}

.tab-content > .tab-pane {
    display: none;
}

.tab-content > .active {
    display: block;
}

.domain-form {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
}

.input-group input,
.input-group select {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.input-group select {
    border-radius: 0;
    border-left: none;
}

.input-group button {
    padding: 10px 15px;
    background-color: #4a4aff;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.domain-results {
    margin-top: 20px;
}

.domain-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.domain-result.available {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.domain-result.unavailable {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.domain-status {
    font-weight: 600;
}

.domain-result.available .domain-status {
    color: #28a745;
}

.domain-result.unavailable .domain-status {
    color: #dc3545;
}

.selected-domains {
    margin-top: 30px;
}

.domain-list {
    margin-top: 20px;
}

.domain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.domain-info {
    display: flex;
    align-items: center;
}

.domain-name {
    font-weight: 600;
    margin-right: 5px;
}

.domain-type {
    color: #777;
    margin-right: 10px;
}

.domain-actions {
    display: flex;
    align-items: center;
}

.domain-actions button {
    margin-left: 10px;
}

.primary-badge {
    display: inline-block;
    padding: 5px 10px;
    background-color: #4a4aff;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.no-domains {
    color: #777;
    font-style: italic;
}

/* Addons */
.addons-list {
    margin-top: 20px;
}

.addon-item {
    display: flex;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.addon-item:hover {
    border-color: #4a4aff;
}

.addon-select {
    padding-right: 15px;
}

.addon-info {
    flex: 1;
}

.addon-name {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.addon-description {
    color: #777;
    margin-bottom: 5px;
    font-size: 13px;
}

.addon-price {
    font-weight: 600;
    color: #4a4aff;
}

/* Checkout tabs */
.checkout-tab-nav {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.checkout-tab-nav li {
    list-style: none;
    margin-right: 20px;
}

.checkout-tab-nav li a {
    display: block;
    padding: 10px 0;
    color: #777;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.checkout-tab-nav li.active a {
    color: #4a4aff;
    border-bottom-color: #4a4aff;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Thank you page */
.thank-you-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.thank-you-content {
    padding: 30px;
}

.thank-you-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.thank-you-header i {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 30px;
    color: #fff;
    background-color: #28a745;
    border-radius: 50%;
    margin-bottom: 20px;
}

.thank-you-header h1 {
    margin: 0 0 10px;
    font-size: 24px;
}

.thank-you-header p {
    color: #777;
}

.order-details {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 30px;
}

.order-info,
.order-summary {
    width: 50%;
    padding: 0 15px;
}

.order-info h3,
.order-summary h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.order-info-table {
    width: 100%;
    border-collapse: collapse;
}

.order-info-table td {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-info-table td:first-child {
    width: 40%;
}

.status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.status-active {
    background-color: #28a745;
    color: #fff;
}

.status-cancelled {
    background-color: #dc3545;
    color: #fff;
}

.order-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.order-summary-table th,
.order-summary-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.order-summary-table th:last-child,
.order-summary-table td:last-child {
    text-align: right;
}

.next-steps {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.next-steps h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.next-steps p {
    color: #777;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    justify-content: center;
}

.action-buttons .btn {
    margin: 0 10px;
}

/* Footer */
footer {
    background-color: #3e1e68;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}