@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

.btn-shake {
    animation: shake 0.5s ease-in-out infinite;
}

/* General styling for custom order form */
.express-cod-checkout-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    background-color: #ffffff;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
    font-family: 'Poppins', sans-serif;
    color: #333;
    position: relative;
    z-index: 1;
}

.express-cod-checkout-form h4 {
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 22px;
    color: #1a1a1a;
    border-bottom: 2px solid #cb0c9f;
    padding-bottom: 5px;
    display: inline-block;
}

.exp-cod-label {
    text-align: center;
    display: block;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    background-color: #fafafa;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    border-color: #cb0c9f;
    outline: none;
}

.form-group input[type="text"]:hover,
.form-group select:hover {
    border-color: #b10b8c;
}

/* Align radio buttons and text to be more compact */
.form-group input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.3);
}

.form-group input[type="radio"] + label {
    display: inline-block;
    margin-left: 5px;
    font-size: 16px;
    color: #333;
    vertical-align: middle;
}

/* Reduce space between checkboxes and labels */
.form-group input[type="checkbox"] + label {
    margin-left: 2px;
}

/* Styling for necklace color options */
.form-group .necklace-color-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.necklace-color-options input[type="radio"] {
    margin-right: 10px;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

.necklace-color-options input[type="radio"]:checked {
    border-color: #cb0c9f;
}

.necklace-color-options input[type="radio"].silver {
    background-color: silver;
}

.necklace-color-options input[type="radio"].gold {
    background-color: gold;
}

.necklace-color-options label {
    font-size: 16px;
    color: #1a1a1a;
    margin-left: 5px;
}

/* Reduce spacing for the "هل تريد إضافة:" label and its checkboxes */
.form-group.label-checkbox {
    margin-bottom: 5px !important;
    padding-bottom: 0 !important;
}

.form-group.label-checkbox label {
    display: inline-block; 
    margin-bottom: 3px !important;
}

.form-group.label-checkbox input[type="checkbox"] {
    margin-top: -5px !important;
    margin-bottom: 0 !important;
    vertical-align: middle;
}

.inline-fields {
    display: flex;
    justify-content: space-between;
}

.form-group-half {
    width: 48%;
}

#baladia, #wilaya {
    width: 100%;
    padding: 1px 6px;
    border: 2px solid #cb0c9f;
    border-radius: 12px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    background-color: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#baladia:hover, #wilaya:hover,
#baladia:focus, #wilaya:focus {
    border-color: #b10b8c;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    outline: none;
}

/* Ensure label text remains visible and styled */
.form-group label[for="wilaya"], .form-group label[for="baladia"] {
    font-weight: bold;
    font-size: 18px;
    color: #344767;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Additional adjustments for better text alignment */
select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #ffffff;
    padding-right: 20px;
    border-radius: 12px;
}

select.form-control option {
    color: #333;
    font-weight: normal;
    background-color: #fff;
}

/* Styling for a modern, clean look */
body {
    background: linear-gradient(to right, #f8f8f8, #ffffff);
    font-family: 'Poppins', sans-serif;
}

#addNecklaceButton {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #344767;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    text-align: center;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
}

#addNecklaceButton:hover {
    background-color: #2c3b58;
}

.deleteNecklaceButton {
    display: block;
    margin: 10px auto;
    padding: 8px;
    background-color: #ea0606;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.deleteNecklaceButton:hover {
    background-color: #c70505;
}

.order-summary {
    margin-top: 20px;
    text-align: right;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.customer-details {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 25px;
    margin-top: 20px;
}

#totalPrice {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

#buy_now_btn,
#buy_now_btn_top,
#buy_now_btn2 {
    background-color: #cb0c9f;
    color: #ffffff;
    padding: 20px;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.2);
}

#buy_now_btn {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    padding: 20px;
}

#buy_now_btn_top {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: none;
    width: 100%;
    padding: 20px;
}

#buy_now_btn2 {
    margin-top: 10px;
    width: calc(100% - 20px);
}

#buy_now_btn:hover,
#buy_now_btn_top:hover,
#buy_now_btn2:hover {
    background-color: #b10b8c;
    transform: translateY(-2px);
}

/* Extra-small custom radio buttons for delivery type */
#homeDelivery, #desktopDelivery {
    appearance: none;
    position: relative;
    width: 14px;
    height: 14px;
    border: 1px solid #cb0c9f;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 8px;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Tiny inner circle with shine effect */
#homeDelivery:checked::before,
#desktopDelivery:checked::before {
    content: "";
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #f78fb3 30%, #ff91c1 70%);
    border-radius: 50%;
    box-shadow: 0px 0px 3px rgba(255, 145, 193, 0.5);
}

/* Styles for error messages and highlighting fields */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

input.error, select.error, textarea.error {
    border: 2px solid red;
}

input.error:focus, select.error:focus, textarea.error:focus {
    outline: none;
}

.arrow-up {
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid red;
    position: absolute;
    top: -10px;
    right: 10px; /* Adjust this value based on your form layout */
}

/* Thank You Page Styles */
.thank-you-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    font-family: 'Cairo', sans-serif;
    background-color: #ffffff;
    border-radius: 8px;
    direction: rtl;
    text-align: center;
}

.thank-you-content {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.thank-you-container h2 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 20px;
}

.thank-you-container h3 {
    color: #e74c3c;
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.thank-you-message {
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
}

.necklaces-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.necklace-card {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 20px;
    margin: 10px;
    width: calc(100% - 40px);
    max-width: 400px;
    box-sizing: border-box;
    text-align: right;
}

.necklace-card h4 {
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 15px;
}

.necklace-card p {
    margin: 5px 0;
    color: #555555;
}

.necklace-card p strong {
    color: #333333;
}

.order-details {
    text-align: right;
    font-size: 18px;
    color: #555555;
    margin-top: 30px;
}

.order-details p {
    margin: 5px 0;
}

.order-details p strong {
    color: #333333;
}

.btn-contact, .btn-home {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 25px;
    background-color: #e74c3c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

.btn-contact:hover, .btn-home:hover {
    background-color: #c0392b;
}

.btn-contact i, .btn-home i {
    margin-left: 10px;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .express-cod-checkout-wrapper {
        padding: 15px;
    }

    #addNecklaceButton, #buy_now_btn, #buy_now_btn_top, #buy_now_btn2 {
        font-size: 16px;
        padding: 12px;
    }

    #totalPrice {
        font-size: 18px;
    }

    .thank-you-container {
        padding: 15px;
    }

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

    .thank-you-container h2 {
        font-size: 28px;
    }

    .thank-you-container h3 {
        font-size: 24px;
    }

    .btn-contact, .btn-home {
        font-size: 16px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .thank-you-container h2 {
        font-size: 24px;
    }

    .thank-you-container h3 {
        font-size: 20px;
    }

    .necklace-card {
        width: 100%;
        margin: 10px 0;
    }
}

/* Additional body styles */
body {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

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

    .button {
        padding: 10px 15px;
    }
}

/* Social proof container */
.social-proof-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-proof-container img {
    width: auto;
    max-width: 100%;
    height: auto;
}
/* Styles for error messages and highlighting fields */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

input.error, select.error, textarea.error {
    border: 2px solid red;
}

input.error:focus, select.error:focus, textarea.error:focus {
    outline: none;
}

.arrow-up {
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid red;
    position: absolute;
    top: -10px;
    right: 10px; /* Adjust as needed based on your form layout */
}

/* Styles for error messages and highlighting fields */
#custom_order_form .error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

#custom_order_form input.error,
#custom_order_form select.error,
#custom_order_form textarea.error {
    border: 2px solid red !important;
}

#custom_order_form input.error:focus,
#custom_order_form select.error:focus,
#custom_order_form textarea.error:focus {
    outline: none;
}
/* Adjust styles for error message within form-group */
.form-group .error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Adjust arrow-up positioning within form-group */
.form-group .arrow-up {
    position: absolute;
    top: -10px;
    right: 10px; /* Adjust based on your layout */
}
/* Styles for error messages and highlighting fields */
#custom_order_form .error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

#custom_order_form input.error,
#custom_order_form select.error,
#custom_order_form textarea.error {
    border: 2px solid red !important;
}

#custom_order_form input.error:focus,
#custom_order_form select.error:focus,
#custom_order_form textarea.error:focus {
    outline: none;
}

#custom_order_form .arrow-up {
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid red;
    position: absolute;
    top: -10px;
    right: 10px; /* Adjust as needed based on your form layout */
}
arrow-down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
  position  : 10px solid red;
    border-top: absolute;
    /* Adjust the positioning to align the arrow */
   top : calc(100% - 10px); /* Positions the arrow below the field */
    right: 10px; /* Adjust as needed */
}
}
/* Add glowing border and pulsing animation */
#flower {
    border: 2px solid #ff6600; /* Initial border color */
    animation: pulseGlow 1.5s infinite; /* Pulsing animation */
    box-shadow: 0 0 10px #ff6600; /* Glow effect */
    transition: box-shadow 0.3s ease;
}

/* Pulsing animation */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px #ff6600;
    }
    50% {
        box-shadow: 0 0 20px #ffcc66;
    }
}

/* Highlight error state */
#flower.error {
    border: 2px solid #ff0000; /* Red border for error */
    box-shadow: 0 0 10px #ff0000; /* Red glow effect */
}
/* Styles for the modern model number selector */
.model-number-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* Hide the default radio inputs */
.model-number-selector input[type="radio"] {
    display: none;
}

/* Style the labels as clickable buttons */
.model-number-selector label {
    display: inline-block;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-weight: 500;
    background-color: #fff;
}

/* Hover effect for better user feedback */
.model-number-selector label:hover {
    border-color: #888;
}

/* When a radio input is checked, style its label to show selection */
.model-number-selector input[type="radio"]:checked + label {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
}
