/* File: assets/css/form.css - ENHANCED WITH CHECKBOX MODE SUPPORT */

/* ============================================
   CUSTOM PLUGIN STYLES (Default)
   ============================================ */

.ggggm-confirmation-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Form Header */
.ggggm-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.ggggm-form-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 28px;
    font-weight: 700;
}

.ggggm-pass-title {
/*    margin: 0 0 15px 0;*/
/*    color: #666;*/
    font-size: 20px !important;
}

.ggggm-pass-subtitle {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 16px;
}

/* Guest Information */
.ggggm-guest-info {
    margin: 20px 0;
    text-align: left;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.ggggm-named-guests,
.ggggm-count-guests {
    margin: 0;
}

.ggggm-guest-count {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.ggggm-guest-count strong {
    color: #4CAF50;
}

.ggggm-guest-list {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
}

.ggggm-guest-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.ggggm-guest-list li:last-child {
    border-bottom: none;
}

.ggggm-guest-icon {
    font-size: 16px;
    color: #666;
}

.ggggm-guest-name {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.ggggm-guest-phone {
    font-size: 14px;
    color: #666;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
}

.ggggm-pass-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.ggggm-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    /*background: #f8f9fa;*/
	background: lightGray;
    /*border-radius: 20px;*/
    font-size: 14px;
    color: #666;
}

.ggggm-status-confirmed {
    background: #d4edda;
    color: #155724;
}

/* Already Confirmed Message */
.ggggm-already-confirmed {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #d4edda;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #28a745;
    animation: ggggm-fadeIn 0.5s ease;
}

.ggggm-confirmed-icon {
    font-size: 32px;
    color: #28a745;
}

.ggggm-confirmed-content {
    flex: 1;
    min-width: 200px;
}

.ggggm-confirmed-content h3 {
    margin: 0 0 8px 0;
    color: #155724;
    font-size: 20px;
    font-weight: 600;
}

.ggggm-confirmed-attendees {
    margin: 0px !important;
	padding: 0px !important;
    /*color: #155724;*/
	color: #4CAF50;
    font-size: 16px;
	
	text-transform: uppercase;
}

.ggggm-due-date-passed {
    margin: 8px 0 0 0;
    color: #856404;
    font-size: 14px;
    font-style: italic;
}

.ggggm-edit-confirmation-btn {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ggggm-edit-confirmation-btn:hover {
/*    background: #218838;*/
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Form Sections Container */
.ggggm-form-sections-container {
    animation: ggggm-fadeIn 0.5s ease;
}

/* Due Date Expired Notice */
.ggggm-due-date-expired-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #ffc107;
}

.ggggm-expired-icon {
    font-size: 28px;
}

.ggggm-expired-content h3 {
    margin: 0 0 8px 0;
    color: #856404;
    font-size: 18px;
}

.ggggm-expired-content p {
    margin: 0 0 8px 0;
    color: #856404;
    font-size: 15px;
}

.ggggm-expired-content p:last-child {
    margin-bottom: 0;
}

.ggggm-final-confirmation {
    padding-top: 8px;
    border-top: 1px solid rgba(133, 100, 4, 0.2);
}

/* Form Sections */
.ggggm-form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    /*border-radius: 10px;*/
	border-radius: 0px;
    border-left: 4px solid #4CAF50;
}

.ggggm-section-title {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

/* Attendee Selector (Radio Mode) */
.ggggm-attendee-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
}

.ggggm-attendee-option {
    display: inline-block;
    padding: 12px 24px;
    background: #ffffff;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    min-width: 100px;
    flex: 1;
    min-width: 0;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.ggggm-attendee-option:hover {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.ggggm-attendee-option.selected {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Disabled state for attendee options */
.ggggm-form[data-due-date-expired="1"] .ggggm-attendee-option {
    cursor: not-allowed;
    opacity: 0.6;
}

.ggggm-form[data-due-date-expired="1"] .ggggm-attendee-option:hover {
    border-color: #ddd;
    background: #ffffff;
}

/* Special styling for 0 option */
.ggggm-attendee-option[data-value="0"] {
    border-color: #dc3545;
    color: #dc3545;
}

.ggggm-attendee-option[data-value="0"]:hover {
    background: #f8d7da;
}

.ggggm-attendee-option[data-value="0"].selected {
    background: #dc3545;
    color: white;
}

/* Guest Checkbox List (Checkbox Mode) */
.ggggm-guest-checkbox-list {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ggggm-guest-checkbox-item {
    background: #ffffff;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s ease;
	
/*	display: flex !important;
	flex-direction: row !important;
	justify-content: center !important;
	align-items: center !important;*/
	
	padding: 0px !important;
/*	background: blue !important;*/
}

.ggggm-guest-checkbox-item:hover {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.ggggm-checkbox-label {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    margin: 0px !important;
    gap: 15px;
	
/*	background: red !important;*/
}

.ggggm-guest-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #4CAF50;
}

.ggggm-checkbox-guest-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.ggggm-checkbox-guest-icon {
    font-size: 18px;
    color: #666;
}

.ggggm-checkbox-guest-name {
    font-weight: 500;
    color: #333;
    font-size: 16px;
    flex: 1;
    min-width: 150px;
	text-transform: none;
	line-height: 1.2rem !important;
}

.ggggm-checkbox-guest-phone {
    font-size: 14px;
    color: #666;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Checked state */
.ggggm-guest-checkbox:checked + .ggggm-checkbox-guest-info .ggggm-checkbox-guest-name {
    color: #4CAF50;
    font-weight: 600;
}

.ggggm-guest-checkbox:checked ~ .ggggm-checkbox-guest-info {
    color: #4CAF50;
}

/* Disabled checkbox state */
.ggggm-form[data-due-date-expired="1"] .ggggm-guest-checkbox {
    cursor: not-allowed;
    opacity: 0.6;
}

.ggggm-form[data-due-date-expired="1"] .ggggm-checkbox-label {
    cursor: not-allowed;
}

.ggggm-form[data-due-date-expired="1"] .ggggm-guest-checkbox-item:hover {
    border-color: #ddd;
    background: #ffffff;
}

/* Selected count indicator */
.ggggm-selected-count {
    font-weight: 600;
    color: #4CAF50;
}

/* Form Field */
.ggggm-form-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
    font-size: 16px;
}

/* Textarea */
.ggggm-form-field textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ggggm-form-field textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Disabled textarea */
.ggggm-form[data-due-date-expired="1"] .ggggm-form-field textarea {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Due Date Notice */
.ggggm-due-date-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #ffc107;
}

.ggggm-notice-icon {
    font-size: 24px;
}

.ggggm-notice-content p {
    margin: 0;
    color: #856404;
    font-size: 15px;
    font-weight: 500;
}

/* Submit Button */
.ggggm-form-submit {
    text-align: center;
    margin-top: 30px;
}

.ggggm-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.ggggm-submit-button:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ggggm-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #6c757d;
}

.ggggm-button-text {
    display: inline-block;
}

.ggggm-button-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.ggggm-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: ggggm-spin 1s linear infinite;
}

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

/* Form Messages */
.ggggm-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    animation: ggggm-fadeIn 0.3s ease;
}

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

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

@keyframes ggggm-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error States */
.ggggm-form-error {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8d7da;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #dc3545;
}

.ggggm-error-icon {
    font-size: 28px;
}

.ggggm-error-content h3 {
    margin: 0 0 8px 0;
    color: #721c24;
    font-size: 18px;
}

.ggggm-error-content p {
    margin: 0 0 8px 0;
    color: #721c24;
    font-size: 15px;
}

/* Field Description */
.ggggm-field-description {
    margin: 8px 0 0 0;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Debug Info */
.ggggm-debug-info {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.ggggm-debug-info h3 {
    margin: 0 0 15px 0;
    color: #495057;
}

.ggggm-debug-info ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.ggggm-debug-info li {
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
}

.ggggm-debug-info li:last-child {
    border-bottom: none;
}

/* ============================================
   THEME STYLES MODE
   Use WordPress theme's default styles
   ============================================ */

.ggggm-confirmation-form-wrapper.ggggm-use-theme-styles {
    /* Remove custom wrapper styles */
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
}

.ggggm-use-theme-styles .ggggm-form-header h2,
.ggggm-use-theme-styles .ggggm-confirmed-content h3,
.ggggm-use-theme-styles .ggggm-expired-content h3,
.ggggm-use-theme-styles .ggggm-error-content h3,
.ggggm-use-theme-styles .ggggm-section-title {
    /* Use theme's heading styles */
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.ggggm-use-theme-styles .ggggm-form-header {
	background: rgba(255, 255, 255, 0.25); /* White with 25% opacity */
	border-radius: 0;
	border-left: none;
	padding: 20px 10px;
}

.ggggm-use-theme-styles .ggggm-form-section {
    /* Use theme's section/box styles */
    /*background: transparent;*/
	background: rgba(255, 255, 255, 0.25); /* White with 25% opacity */
    border-radius: 0;
    border-left: none;
    padding: 20px 10px;
}

.ggggm-use-theme-styles .ggggm-guest-info {
    /* Use theme's info box styles */
    background: transparent;
    border-left: none;
}

.ggggm-use-theme-styles .ggggm-submit-button {
    /* Use theme's button styles */
/*    background: inherit;*/
/*    color: inherit;*/
    border: inherit;
    border-radius: inherit;
    padding: inherit;
    font-size: inherit;
    font-weight: inherit;
    max-width: none;
}

.ggggm-use-theme-styles .ggggm-submit-button:hover:not(:disabled) {
    background: inherit;
    transform: none;
    box-shadow: none;
}

.ggggm-use-theme-styles .ggggm-edit-confirmation-btn {
    /* Use theme's button styles */
/*    background: inherit;*/
/*    color: inherit;*/
/*    border: inherit;
    border-radius: inherit;
    padding: inherit;
    font-size: inherit;
    font-weight: inherit;*/
}

.ggggm-use-theme-styles .ggggm-edit-confirmation-btn:hover {
/*    background: inherit;*/
    transform: none;
    box-shadow: none;
}

.ggggm-use-theme-styles .ggggm-attendee-option {
    /* Use theme's button/option styles */
    /*background: inherit;*/
	background: rgba(255, 255, 255, 0.25); /* White with 25% opacity */	
    /*border: inherit;*/
    /*border-radius: inherit;*/
	border-radius: 0px !important;
    padding: 10px 20px;
}

.ggggm-use-theme-styles .ggggm-attendee-option.selected {	
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.ggggm-use-theme-styles .ggggm-attendee-option[data-value="0"].selected {
    background: #dc3545;
    color: white;
	border-color: #dc3545;
}

.ggggm-use-theme-styles .ggggm-guest-checkbox-item {
    /* Use theme's styles */
    /*background: inherit;*/
	background: rgba(255, 255, 255, 0.25); /* White with 25% opacity */
    /*border: inherit;*/
    border-radius: inherit;
	
	/*background: #000 !important;*/
}

.ggggm-use-theme-styles .ggggm-checkbox-guest-name {
	/*color: #fff !important;*/
}

.ggggm-use-theme-styles .ggggm-form-field textarea {
    /* Use theme's input styles */
    border: inherit;
    border-radius: inherit;
    font-family: inherit;
    font-size: inherit;
}

.ggggm-use-theme-styles .ggggm-already-confirmed,
.ggggm-use-theme-styles .ggggm-due-date-expired-notice,
.ggggm-use-theme-styles .ggggm-due-date-notice,
.ggggm-use-theme-styles .ggggm-form-error {
    /* Use theme's alert/notice styles */
    background: transparent;
    border-left: none;
    border-radius: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ggggm-confirmation-form-wrapper {
        padding: 25px;
        margin: 15px;
    }
    
    .ggggm-form-header h2 {
        font-size: 24px;
    }
    
    .ggggm-already-confirmed {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        text-align: center;
    }
    
    .ggggm-confirmed-content {
        min-width: auto;
    }
    
    .ggggm-edit-confirmation-btn {
        width: 100%;
    }
    
    .ggggm-form-section {
        padding: 20px;
    }
    
    .ggggm-attendee-selector {
        gap: 8px;
    }
    
    .ggggm-attendee-option {
        padding: 10px 15px;
        font-size: 15px;
        min-width: 80px;
    }
    
    .ggggm-checkbox-guest-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .ggggm-checkbox-guest-name {
        min-width: auto;
    }
    
    .ggggm-checkbox-guest-phone {
        align-self: flex-start;
    }
    
    .ggggm-guest-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .ggggm-guest-phone {
        align-self: flex-start;
    }
    
    .ggggm-submit-button {
        width: 100%;
        max-width: none;
    }
    
    .ggggm-use-theme-styles .ggggm-confirmation-form-wrapper {
        padding: 0;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .ggggm-confirmation-form-wrapper {
        padding: 20px;
        margin: 10px;
    }
    
    .ggggm-form-header h2 {
        font-size: 22px;
    }
    
    .ggggm-attendee-option {
        /*flex: 0 0 calc(50% - 8px);*/
		flex: 0 0 100%;
    }
    
    .ggggm-attendee-option[data-value="0"] {
        flex: 0 0 100%;
    }
    
    .ggggm-checkbox-label {
        padding: 12px;
    }
    
    .ggggm-use-theme-styles .ggggm-confirmation-form-wrapper {
        padding: 0;
        margin: 0;
    }
}