/**
 * Infinite Uploads Calculator Styles
 * Brand colors: #2b2953 (primary dark), #26a9e0 (accent blue)
 */

/* Reset and base styles */
.iu-calc-wrapper * {
    box-sizing: border-box;
}

.iu-calc-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 20px 0;
    line-height: 1.6;
}

.iu-calc-fullwidth {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

.iu-calc-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.iu-calc-fullwidth .iu-calc-container {
    max-width: 100%;
    border-radius: 0;
}

/* Header */
.iu-calc-header {
    background: linear-gradient(135deg, #2b2953 0%, #1f1e3d 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
	display:none !important;
}

.iu-calc-header h2 {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

.iu-calc-header p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

/* Main content area 
.iu-calc-main {
    padding: 40px;
}*/

/* Input section */
.iu-calc-input-group {
    margin-bottom: 40px;
}

.iu-calc-input-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2b2953;
    margin: 0 0 20px 0;
}

.iu-calc-input-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .iu-calc-input-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .iu-calc-input-row {
        grid-template-columns: 1fr;
    }
}

.iu-calc-input-field {
    position: relative;
    display: flex;
    align-items: center;
}

.iu-calc-input-field input,
.iu-calc-input-field select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.iu-calc-input-field input {
    padding-right: 130px;
}

.iu-calc-input-field select {
    padding-right: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.iu-calc-input-field input:focus,
.iu-calc-input-field select:focus {
    outline: none;
    border-color: #26a9e0;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.1);
}

.iu-calc-input-field input[readonly] {
    background-color: #f8f9fa;
    color: #666;
    cursor: not-allowed;
}

.iu-calc-unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    text-align: right;
}

/* Checkboxes */
.iu-calc-checkbox-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.iu-calc-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: #2b2953;
    cursor: pointer;
    user-select: none;
}

.iu-calc-checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
    transform: scale(1.2);
}

/* Results grid */
.iu-calc-results {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    margin-top: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}

.iu-calc-card {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
    scroll-snap-align: start;
}

/* Cards */
.iu-calc-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.iu-calc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.iu-calc-card.iu-best-value {
    border-color: #26a9e0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.iu-calc-card.iu-best-value::before {
    content: attr(data-badge-text);
    position: absolute;
    top: 20px;
    right: -35px;
    background: #26a9e0;
    color: white;
    padding: 5px 45px;
    font-size: 0.75rem;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.iu-calc-card.iu-infinite {
    border-color: #2b2953;
}

/* Card header */
.iu-calc-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.iu-calc-logo {
    display: none;
}

.iu-calc-card-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2b2953;
    line-height: 1.2;
}

/* Price display */
.iu-calc-price-display {
    text-align: center;
    margin: 20px 0;
}

.iu-calc-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2b2953;
    margin-bottom: 5px;
    line-height: 1;
}

.iu-calc-card.iu-infinite .iu-calc-price-amount {
    color: #26a9e0;
}

.iu-calc-price-period {
    color: #666;
    font-size: 0.9rem;
}

/* Badge */
.iu-calc-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
    display: inline-block;
}

.iu-calc-badge.iu-best {
    background: linear-gradient(135deg, #26a9e0 0%, #1e8bb8 100%);
}

/* Breakdown */
.iu-calc-breakdown {
    margin-top: 20px;
}

.iu-calc-breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    align-items: center;
}

.iu-calc-breakdown-label {
    color: #666;
}

.iu-calc-breakdown-value {
    font-weight: 600;
    color: #2b2953;
}

.iu-calc-breakdown-total {
    border-top: 2px solid #e1e5e9;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: 700;
}

/* Features list */
.iu-calc-features {
    margin-top: 20px;
}

.iu-calc-feature {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.iu-calc-check {
    color: #26a9e0;
    margin-right: 10px;
    font-weight: bold;
}

/* Sign up button */
.iu-calc-signup-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #26a9e0 0%, #1e8bb8 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(38, 169, 224, 0.3);
}

.iu-calc-signup-btn:hover {
    background: linear-gradient(135deg, #1e8bb8 0%, #176d91 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 169, 224, 0.4);
    color: white;
}

/* Summary section */
.iu-calc-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    margin-top: 40px;
    border-radius: 15px;
}

.iu-calc-summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2b2953;
    margin: 0 0 10px 0;
    text-align: center;
}

.iu-calc-summary-subtitle {
    text-align: center;
    color: #666;
    margin: 0 0 20px 0;
    font-size: 1rem;
}

.iu-calc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.iu-calc-stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e8eaed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.iu-calc-stat-card:hover {
    border-color: #26a9e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.iu-calc-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #26a9e0;
    margin-bottom: 5px;
    line-height: 1;
}

.iu-calc-stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Tooltip */
.iu-calc-tooltip {
    position: relative;
    display: inline-flex;
    cursor: help;
    margin-left: 3px;
}

.iu-calc-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #999;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    line-height: 1;
    flex-shrink: 0;
    pointer-events: auto;
}

.iu-calc-tooltip:hover .iu-calc-tooltip-icon {
    background: #26a9e0;
}

.iu-calc-tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #2b2953;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    line-height: 1.4;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.iu-calc-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2b2953 transparent transparent transparent;
}

.iu-calc-tooltip:hover .iu-calc-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Footer */
.iu-calc-footer {
    background: #f8f9fa;
    padding: 30px 40px;
    border-top: 1px solid #e1e5e9;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.iu-calc-footer p {
    margin: 0 0 15px 0;
}

.iu-calc-footer p:last-child {
    margin-bottom: 0;
}

.iu-calc-footer-note {
    font-size: 0.85rem;
    color: #888;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .iu-calc-header h2 {
        font-size: 1.8rem;
    }
    
    .iu-calc-header p {
        font-size: 1rem;
    }
    
    .iu-calc-main {
        padding: 20px;
    }
    
    .iu-calc-input-row {
        grid-template-columns: 1fr;
    }
    
    .iu-calc-checkbox-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .iu-calc-card.iu-best-value::before {
        font-size: 0.65rem;
        padding: 4px 35px;
        right: -30px;
    }
}

/* Divi theme specific fixes */
.et_pb_section .iu-calc-wrapper,
.et_pb_row .iu-calc-wrapper {
    width: 100%;
}

.et_pb_section .iu-calc-container {
    width: 100%;
	padding:30px;
}
