/* =====================================================
   InviteYou Signup Wizard — Neutral Theme
   Designed to sit cleanly inside any WordPress theme
   ===================================================== */

.iy-wizard-wrap {
    max-width: 780px;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
}

/* ---- Progress Bar ---- */
.iy-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 36px;
    position: relative;
}

.iy-progress::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.iy-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.iy-progress-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    transition: all .3s;
    margin-bottom: 8px;
}

.iy-progress-step.active .iy-progress-step-dot {
    background: #333;
    border-color: #333;
    color: #fff;
}

.iy-progress-step.done .iy-progress-step-dot {
    background: #555;
    border-color: #555;
    color: #fff;
}

.iy-progress-step-label {
    font-size: 12px;
    color: #999;
    text-align: center;
    white-space: nowrap;
}

.iy-progress-step.active .iy-progress-step-label {
    color: #333;
    font-weight: 600;
}

/* ---- Step Panels ---- */
.iy-step {
    display: none;
}

.iy-step.active {
    display: block;
}

.iy-step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: inherit;
}

.iy-step-subtitle {
    font-size: 15px;
    color: #777;
    margin-bottom: 28px;
}

/* ---- Event Type Cards ---- */
.iy-event-type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.iy-event-type-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px 22px;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    min-width: 120px;
    flex: 1;
    background: #fff;
}

.iy-event-type-card:hover {
    border-color: #999;
}

.iy-event-type-card.selected {
    border-color: #333;
    background: #f8f8f8;
}

.iy-event-type-card .iy-et-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.iy-event-type-card .iy-et-name {
    font-size: 14px;
    font-weight: 600;
}

/* ---- Template Cards ---- */
.iy-template-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.iy-template-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all .2s;
    width: calc(33.333% - 12px);
    background: #fff;
}

.iy-template-card:hover {
    border-color: #999;
    transform: translateY(-2px);
}

.iy-template-card.selected {
    border-color: #333;
}

.iy-template-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.iy-template-card-placeholder {
    width: 100%;
    height: 130px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 13px;
}

.iy-template-card-info {
    padding: 12px;
}

.iy-template-card-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.iy-template-card-desc {
    font-size: 12px;
    color: #888;
}

/* ---- Package Cards ---- */
.iy-package-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.iy-package-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 22px;
    cursor: pointer;
    transition: all .2s;
    flex: 1;
    min-width: 200px;
    background: #fff;
}

.iy-package-card:hover {
    border-color: #999;
}

.iy-package-card.selected {
    border-color: #333;
    background: #f8f8f8;
}

.iy-package-card-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.iy-package-card-price {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.iy-package-card-price span {
    font-size: 14px;
    font-weight: 400;
    color: #888;
}

.iy-package-card-desc {
    font-size: 13px;
    color: #777;
    margin-bottom: 14px;
}

.iy-package-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iy-package-features li {
    font-size: 13px;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
}

.iy-package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #555;
    font-weight: 700;
}

/* ---- Form Fields ---- */
.iy-field-group {
    margin-bottom: 22px;
}

.iy-field-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 7px;
    color: inherit;
}

.iy-field-group input[type="text"],
.iy-field-group input[type="email"],
.iy-field-group input[type="password"],
.iy-field-group input[type="date"],
.iy-field-group input[type="time"],
.iy-field-group input[type="tel"],
.iy-field-group textarea,
.iy-field-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: inherit;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s;
}

.iy-field-group input:focus,
.iy-field-group textarea:focus,
.iy-field-group select:focus {
    outline: none;
    border-color: #555;
}

.iy-field-hint {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.iy-field-error {
    font-size: 12px;
    color: #c0392b;
    margin-top: 5px;
    display: none;
}

/* ---- Subdomain Field ---- */
.iy-subdomain-row {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.iy-subdomain-prefix {
    padding: 10px 12px;
    background: #f5f5f5;
    border-right: 1px solid #ccc;
    font-size: 14px;
    color: #777;
    white-space: nowrap;
}

.iy-subdomain-row input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
    padding: 10px 12px !important;
}

.iy-subdomain-row input:focus {
    box-shadow: none !important;
}

.iy-subdomain-suffix {
    padding: 10px 12px;
    background: #f5f5f5;
    border-left: 1px solid #ccc;
    font-size: 14px;
    color: #777;
    white-space: nowrap;
}

.iy-subdomain-status {
    font-size: 13px;
    margin-top: 6px;
    min-height: 20px;
}

.iy-subdomain-status.available { color: #27ae60; }
.iy-subdomain-status.taken     { color: #c0392b; }
.iy-subdomain-status.checking  { color: #888; }

/* ---- Image Upload ---- */
.iy-image-upload-group {
    margin-bottom: 24px;
}

.iy-image-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    background: #fafafa;
}

.iy-image-upload-area:hover {
    border-color: #888;
    background: #f5f5f5;
}

.iy-image-upload-area.has-image {
    padding: 0;
    border-style: solid;
    border-color: #ccc;
}

.iy-image-upload-area img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.iy-image-upload-placeholder {
    color: #aaa;
}

.iy-image-upload-placeholder .iy-upload-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.iy-image-upload-placeholder p {
    margin: 0;
    font-size: 14px;
}

.iy-image-upload-placeholder small {
    font-size: 12px;
    color: #bbb;
}

.iy-image-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.iy-image-upload-area.has-image .iy-image-remove {
    display: flex;
}

.iy-image-input {
    display: none;
}

/* ---- Addon Checkboxes ---- */
.iy-addon-list {
    margin-bottom: 24px;
}

.iy-addon-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .2s;
    background: #fff;
}

.iy-addon-item:hover {
    border-color: #999;
}

.iy-addon-item.selected {
    border-color: #333;
    background: #f8f8f8;
}

.iy-addon-item input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.iy-addon-item-info {
    flex: 1;
}

.iy-addon-item-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 3px;
}

.iy-addon-item-desc {
    font-size: 13px;
    color: #777;
}

.iy-addon-item-price {
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    color: #333;
}

/* ---- Setup Help ---- */
.iy-setup-help-section {
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 24px;
}

.iy-setup-help-section h4 {
    margin: 0 0 6px;
    font-size: 16px;
}

.iy-setup-help-section p {
    font-size: 13px;
    color: #777;
    margin: 0 0 16px;
}

.iy-setup-option-list {
    margin-bottom: 16px;
}

.iy-setup-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s;
}

.iy-setup-option-item:hover { border-color: #999; }
.iy-setup-option-item.selected { border-color: #333; }

.iy-setup-option-item input[type="radio"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.iy-setup-option-name { font-weight: 600; font-size: 14px; flex: 1; }
.iy-setup-option-duration { font-size: 12px; color: #888; }
.iy-setup-option-price { font-weight: 700; color: #333; }

.iy-setup-contact-fields {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.iy-setup-contact-fields.visible { display: block; }

/* ---- Order Summary ---- */
.iy-order-summary {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.iy-order-summary h4 {
    margin: 0 0 14px;
    font-size: 16px;
}

.iy-order-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 5px 0;
    color: #555;
}

.iy-order-line.discount { color: #27ae60; }

.iy-order-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px 0;
}

.iy-order-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    padding-top: 8px;
}

/* ---- Voucher ---- */
.iy-voucher-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.iy-voucher-row input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    text-transform: uppercase;
}

.iy-voucher-row button {
    padding: 10px 18px;
    background: #555;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}

.iy-voucher-row button:hover { background: #333; }

.iy-voucher-feedback {
    font-size: 13px;
    margin-top: -14px;
    margin-bottom: 16px;
    min-height: 18px;
}

.iy-voucher-feedback.success { color: #27ae60; }
.iy-voucher-feedback.error   { color: #c0392b; }

/* ---- Stripe Payment ---- */
#iy-stripe-card-element {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 8px;
}

#iy-stripe-card-errors {
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 14px;
    min-height: 18px;
}

/* ---- Navigation Buttons ---- */
.iy-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.iy-btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
    font-family: inherit;
}

.iy-btn-primary {
    background: #333;
    color: #fff;
}

.iy-btn-primary:hover { background: #111; }

.iy-btn-primary:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.iy-btn-secondary {
    background: transparent;
    color: #555;
    border: 1px solid #ccc;
}

.iy-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* ---- Confirmation ---- */
.iy-confirmation {
    text-align: center;
    padding: 40px 20px;
}

.iy-confirmation-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 16px;
}

.iy-confirmation h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.iy-confirmation p {
    font-size: 16px;
    color: #666;
    max-width: 480px;
    margin: 0 auto 20px;
}

.iy-confirmation-site-url {
    display: inline-block;
    background: #f0f0f0;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    word-break: break-all;
}

/* ---- Loading Spinner ---- */
.iy-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: iy-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* ---- Alerts ---- */
.iy-alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
}

.iy-alert-error {
    background: #fdf0f0;
    border-left: 4px solid #c0392b;
    color: #c0392b;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .iy-template-card { width: calc(50% - 8px); }
    .iy-progress-step-label { display: none; }
    .iy-package-card { min-width: 100%; }
}

@media (max-width: 400px) {
    .iy-template-card { width: 100%; }
}
