/**
 * CyberVend Products - Frontend Styles
 *
 * @package CyberVend_Products
 */

/* ============================================
   Container & Layout
   ============================================ */

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

/* ============================================
   Single Product Page
   ============================================ */

.cvp-single-product {
    padding: 40px 0;
}

.cvp-product-main {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Gallery Styles */
.cvp-product-gallery {
    position: sticky;
    top: 20px;
    align-self: start;
}

.cvp-gallery-main {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding:0;
    margin-bottom: 15px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cvp-main-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.cvp-main-image {
    max-width: 100%;
     max-height: 100%;
    object-fit: contain;
}

.cvp-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cvp-thumbnail {
    border: 2px solid #e0e0e0;
    border-radius: 3px;
    padding: 5px;
    cursor: pointer;
    transition: border-color 0.3s;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cvp-thumbnail:hover,
.cvp-thumbnail.active {
    border-color: #ff6600;
}

.cvp-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.cvp-product-info {
    display: flex;
    flex-direction: column;
}

.cvp-product-stock-status {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 15px;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cvp-product-stock-status.cvp-stock-in_stock {
    background: #d1fae5;
    color: #065f46;
}

.cvp-product-stock-status.cvp-stock-out_of_stock {
    background: #fee2e2;
    color: #991b1b;
}

.cvp-product-stock-status.cvp-stock-on_order {
    background: #fed7aa;
    color: #92400e;
}

.cvp-product-stock-status.cvp-stock-reserved {
    background: #dbeafe;
    color: #1e40af;
}

.cvp-product-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.cvp-product-price {
    font-size: 28px;
    font-weight: 700;
    color: #ff6600;
    margin: 0 0 25px 0;
}

.cvp-product-serial h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 30px 0;
    color: #333;
}

/* Specifications Grid */
.cvp-specifications {
    display: grid;
    gap: 15px;
    margin-bottom: 40px;
}

.cvp-spec-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cvp-spec-label {
    font-weight: 600;
    color: #333;
}

.cvp-spec-value {
    color: #666;
}

/* CTA Button */
.cvp-product-cta {
    margin-top: auto;
}

.cvp-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.cvp-btn-primary {
    background: #ff6600;
    color: #ffffff;
}

.cvp-btn-primary:hover {
    background: #e55a00;
    color: #ffffff;
}

/* Product Description */
.cvp-product-description {
    margin-bottom: 60px;
    padding: 40px 0;
    border-top: 2px solid #e0e0e0;
}

.cvp-product-description h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.cvp-description-content {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

/* ============================================
   Similar Products & Product Grid
   ============================================ */

.cvp-similar-products {
    padding: 40px 0;
}

.cvp-similar-products h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 30px 0;
    color: #1a1a1a;
}

.cvp-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Custom column layouts for shortcodes */
.cvp-products-grid.cvp-columns-1 {
    grid-template-columns: 1fr;
}

.cvp-products-grid.cvp-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cvp-products-grid.cvp-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cvp-products-grid.cvp-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.cvp-products-grid.cvp-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.cvp-products-grid.cvp-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Product Card */
.cvp-product-card {
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e0e0;
}

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

.cvp-card-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3/4;
    background: #f5f5f5;
    overflow: hidden;
}

.cvp-card-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.cvp-product-card:hover .cvp-card-img {
    transform: scale(1.05);
}

/* Badges */
.cvp-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cvp-stock-badge.in-stock {
    background: #4caf50;
    color: #fff;
}

.cvp-stock-badge.out-of-stock {
    background: #f44336;
    color: #fff;
}

.cvp-stock-badge.on-order {
    background: #ff9800;
    color: #fff;
}

.cvp-stock-badge.reserved {
    background: #2196f3;
    color: #fff;
}

.cvp-condition-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-transform: uppercase;
}

/* Card Content */
.cvp-card-content {
    padding: 20px;
}

/* Brand Name (orange) */
.cvp-card-brand {
    font-size: 14px;
    font-weight: 700;
    color: #ff6600;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Product Title */
.cvp-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #1a1a1a;
}

.cvp-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.cvp-card-title a:hover {
    color: #ff6600;
}

.cvp-card-stock {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.cvp-card-stock.in-stock {
    color: #4caf50;
}

.cvp-card-stock.out-of-stock {
    color: #f44336;
}

.cvp-card-stock.on-order {
    color: #ff9800;
}

.cvp-card-stock.reserved {
    color: #2196f3;
}

/* ============================================
   Archive Page
   ============================================ */

.cvp-archive {
    padding: 40px 0;
}

.cvp-archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.cvp-archive-title {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.cvp-archive-description {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Filters */
.cvp-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    align-items: end;
}

.cvp-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cvp-filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.cvp-filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.cvp-filter-select:hover {
    border-color: #ff6600;
}

.cvp-filter-select:focus {
    border-color: #ff6600;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* Filter Actions (Reset Button) */
.cvp-filter-actions {
    display: flex;
    align-items: flex-end;
}

.cvp-reset-btn {
    width: 100%;
    padding: 12px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cvp-reset-btn:hover {
    background: #ff6600;
    border-color: #ff6600;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.2);
}

.cvp-reset-btn:active {
    transform: translateY(0);
}

/* Pagination */
.cvp-pagination {
    margin-top: 50px;
    text-align: center;
}

.cvp-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.cvp-pagination .page-numbers:hover,
.cvp-pagination .page-numbers.current {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

.cvp-no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #999;
}

/* ============================================
   Placeholder Image
   ============================================ */

.cvp-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cvp-placeholder::after {
    content: "No Image";
    color: #999;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .cvp-products-grid,
    .cvp-products-grid.cvp-columns-4,
    .cvp-products-grid.cvp-columns-5,
    .cvp-products-grid.cvp-columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .cvp-product-main {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .cvp-product-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cvp-product-gallery {
        position: static;
    }

    .cvp-products-grid,
    .cvp-products-grid.cvp-columns-3,
    .cvp-products-grid.cvp-columns-4,
    .cvp-products-grid.cvp-columns-5,
    .cvp-products-grid.cvp-columns-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cvp-spec-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .cvp-filters {
        flex-direction: column;
    }

    .cvp-filter-group {
        width: 100%;
    }

    .cvp-archive-title {
        font-size: 28px;
    }

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

    .cvp-product-price {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .cvp-products-grid,
    .cvp-products-grid.cvp-columns-2,
    .cvp-products-grid.cvp-columns-3,
    .cvp-products-grid.cvp-columns-4,
    .cvp-products-grid.cvp-columns-5,
    .cvp-products-grid.cvp-columns-6 {
        grid-template-columns: 1fr;
    }

    .cvp-container {
        padding: 0 15px;
    }

    .cvp-card-content {
        padding: 15px;
    }

    .cvp-btn {
        width: 100%;
    }
}

/* ============================================
   Gallery Navigation & Lightbox
   ============================================ */

/* Zoom Button */
.cvp-zoom-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    padding: 0;
}

.cvp-zoom-btn:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cvp-zoom-btn svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

/* Gallery Navigation Arrows */
.cvp-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Hide by default */
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    padding: 0;
    opacity: 0;
}

/* Show arrows only on gallery hover */
.cvp-gallery-main:hover .cvp-gallery-arrow {
    display: flex;
    opacity: 1;
}

.cvp-gallery-arrow:hover {
    background: #ff6600;
    border-color: #ff6600;
}

.cvp-gallery-arrow:hover svg {
    stroke: #fff;
}

.cvp-gallery-arrow svg {
    width: 24px;
    height: 24px;
    stroke: #333;
    transition: stroke 0.3s;
}

.cvp-gallery-prev {
    left: 20px;
}

.cvp-gallery-next {
    right: 20px;
}

/* Hide gallery data */
.cvp-gallery-data {
    display: none !important;
}

/* ============================================
   Lightbox Modal
   ============================================ */

.cvp-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.74) !important;
    z-index: 9999999 !important;
    display: none !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.cvp-lightbox.active {
    display: flex !important;
    opacity: 1;
}

/* Prevent body scroll when lightbox open */
body.cvp-lightbox-open {
    overflow: hidden !important;
}

/* Lightbox Content */
.cvp-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.cvp-lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* Lightbox Close Button */
.cvp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
}

.cvp-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    transform: rotate(90deg);
}

/* Lightbox Navigation Arrows */
.cvp-lightbox-prev,
.cvp-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
    z-index: 10;
}

.cvp-lightbox-prev:hover,
.cvp-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.cvp-lightbox-prev svg,
.cvp-lightbox-next svg {
    stroke: #fff;
}

.cvp-lightbox-prev {
    left: 30px;
}

.cvp-lightbox-next {
    right: 30px;
}

/* Image Counter */
.cvp-lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Loading Spinner */
.cvp-lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.cvp-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cvp-spin 1s linear infinite;
}

@keyframes cvp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Lightbox Responsive
   ============================================ */

@media (max-width: 768px) {
    .cvp-lightbox-prev,
    .cvp-lightbox-next {
        width: 50px;
        height: 50px;
    }

    .cvp-lightbox-prev {
        left: 15px;
    }

    .cvp-lightbox-next {
        right: 15px;
    }

    .cvp-lightbox-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 26px;
    }

    .cvp-lightbox-counter {
        bottom: 20px;
        font-size: 12px;
        padding: 8px 16px;
    }

    .cvp-lightbox-image {
        max-height: 80vh;
    }

    .cvp-gallery-arrow {
        width: 35px;
        height: 35px;
    }

    .cvp-gallery-arrow svg {
        width: 20px;
        height: 20px;
    }

    .cvp-zoom-btn {
        width: 35px;
        height: 35px;
    }

    .cvp-zoom-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   Configurator Modal
   ============================================ */

/* Modal Overlay */
.cvp-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 9999998 !important;
    display: none !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.cvp-modal.active {
    display: flex !important;
    opacity: 1;
}

/* Modal Content Box */
.cvp-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 40px;
    margin: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Close Button */
.cvp-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s;
    z-index: 10;
}

.cvp-modal-close:hover {
    color: #333;
}

/* Modal Title */
.cvp-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    padding-right: 40px;
}

.cvp-modal-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    font-weight: 500;
}

/* Form Sections */
.cvp-form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.cvp-form-section:last-of-type {
    border-bottom: none;
}

.cvp-form-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

/* Form Rows */
.cvp-form-row {
    margin-bottom: 20px;
}

.cvp-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Labels */
.cvp-form-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.cvp-form-section label .required {
    color: #ff6600;
}

/* Text Inputs */
.cvp-form-section input[type="text"],
.cvp-form-section input[type="tel"],
.cvp-form-section input[type="email"],
.cvp-form-section textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.cvp-form-section input[type="text"]:focus,
.cvp-form-section input[type="tel"]:focus,
.cvp-form-section input[type="email"]:focus,
.cvp-form-section textarea:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.cvp-form-section textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Labels */
.cvp-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 400;
    color: #333;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.cvp-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #ff6600;
}

.cvp-checkbox-label:hover {
    color: #ff6600;
}

/* Radio Labels */
.cvp-radio-label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 400;
    color: #333;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.cvp-radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #ff6600;
}

.cvp-radio-label:hover {
    color: #ff6600;
}

/* Form Actions */
.cvp-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Buttons */
.cvp-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.cvp-btn-primary {
    background: #ff6600;
    color: #ffffff;
}

.cvp-btn-primary:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

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

.cvp-btn-secondary:hover {
    background: #e0e0e0;
}

.cvp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Message */
.cvp-form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 15px;
    display: none;
}

.cvp-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.cvp-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .cvp-modal {
        padding: 10px;
    }

    .cvp-modal-content {
        padding: 30px 20px;
        max-width: 100%;
    }

    .cvp-modal-title {
        font-size: 22px;
    }

    .cvp-form-section h3 {
        font-size: 18px;
    }

    .cvp-form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cvp-form-actions {
        flex-direction: column;
    }

    .cvp-btn {
        width: 100%;
    }
}

/* Prevent body scroll when modal is open */
body.cvp-modal-open {
    overflow: hidden !important;
}
