/* MyCVFolio Frontend Styles */

:root {
    --primary-color: #ff751f;
    --secondary-color: #000000;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #ff751f;
    --info-color: #ff751f;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #333;
}

/* Registration Page */
.mycvfolio-registration-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Hero Section */
.mycvfolio-registration-hero {
    background: #ff751f;
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 40px rgba(255, 117, 31, 0.3);
}

.mycvfolio-registration-hero h1 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.mycvfolio-registration-header {
    text-align: center;
    margin-bottom: 40px;
}

.mycvfolio-registration-header h1 {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.mycvfolio-registration-header p {
    font-size: 1.2em;
    color: #666;
}

/* Forms */
.mycvfolio-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mycvfolio-form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

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

.mycvfolio-form-section h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.mycvfolio-package-subtitle {
    color: #666;
    margin-top: -10px;
    margin-bottom: 20px;
}

.mycvfolio-form-group {
    margin-bottom: 20px;
}

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

.mycvfolio-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.mycvfolio-form-group input[type="text"],
.mycvfolio-form-group input[type="email"],
.mycvfolio-form-group input[type="tel"],
.mycvfolio-form-group input[type="password"],
.mycvfolio-form-group input[type="url"],
.mycvfolio-form-group textarea,
.mycvfolio-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.mycvfolio-form-group input:focus,
.mycvfolio-form-group textarea:focus,
.mycvfolio-form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.mycvfolio-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Package Selection */
.mycvfolio-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.mycvfolio-package {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.mycvfolio-package:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.mycvfolio-package input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.mycvfolio-package input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background: #ff751f;
    color: white;
}

.mycvfolio-package input[type="radio"]:checked + label .package-header h3,
.mycvfolio-package input[type="radio"]:checked + label .package-price {
    color: white;
}

.mycvfolio-package label {
    display: block;
    padding: 30px 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.package-recommended {
    border-color: var(--warning-color);
}

.package-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.package-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: var(--secondary-color);
}

.package-desc {
    font-size: 0.85em;
    color: #666;
    margin: 10px 0 0 0;
    font-style: italic;
}

.mycvfolio-package input[type="radio"]:checked + label .package-desc {
    color: rgba(255, 255, 255, 0.9);
}

.package-price {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
}

.package-price span {
    font-size: 0.5em;
    color: #666;
}

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

.package-features li {
    padding: 8px 0;
    font-size: 14px;
}

/* Payment Methods */
.mycvfolio-payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
    overflow: hidden;
}

.payment-method:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-method input[type="radio"]:checked + label {
    background: #ff751f;
    color: white;
}

.payment-method input[type="radio"]:checked + label .payment-logo,
.payment-method input[type="radio"]:checked + label .payment-desc {
    color: white;
}

.payment-method label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-icon {
    font-size: 2em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-icon svg {
    width: 32px;
    height: 32px;
}

.payment-logo {
    font-size: 16px;
    font-weight: bold;
    color: var(--secondary-color);
}

.payment-desc {
    font-size: 12px;
    color: #666;
}

/* Bank Transfer Section */
.bank-transfer-section {
    margin-top: 30px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.bank-info-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bank-info-card h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3em;
    text-align: center;
}

.bank-details {
    display: grid;
    gap: 15px;
}

.bank-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.bank-detail-item:last-child {
    border-bottom: none;
    font-weight: bold;
    color: var(--primary-color);
}

.detail-label {
    color: #666;
    font-weight: 600;
}

.detail-value {
    color: var(--secondary-color);
    font-weight: 700;
}

.bank-note {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
    font-size: 14px;
    color: #856404;
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

.upload-icon {
    font-size: 2em;
}

.upload-text {
    font-weight: 600;
    color: var(--secondary-color);
}

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

.mycvfolio-btn-primary {
    background: var(--primary-color);
    color: white;
}

.mycvfolio-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.mycvfolio-btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.mycvfolio-btn-secondary:hover {
    background: #1a252f;
}

.mycvfolio-form-actions {
    margin-top: 30px;
    text-align: center;
}

.mycvfolio-terms {
    display: block;
    margin-bottom: 20px;
    font-size: 14px;
}

.mycvfolio-terms input {
    margin-right: 8px;
}

.mycvfolio-login-link {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
}

/* Dashboard */
.mycvfolio-dashboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.mycvfolio-dashboard-header {
    margin-bottom: 40px;
}

.mycvfolio-dashboard-header h1 {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Stats Row */
.mycvfolio-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.mycvfolio-stat-mini {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    border-left: 4px solid var(--primary-color);
}

.mycvfolio-stat-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.2);
}

.mycvfolio-stat-mini .stat-icon {
    font-size: 2.5em;
}

.mycvfolio-stat-mini .stat-content {
    flex: 1;
}

.mycvfolio-stat-mini .stat-value {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.mycvfolio-stat-mini .stat-label {
    font-size: 0.85em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mycvfolio-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.mycvfolio-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.mycvfolio-card-header {
    padding: 20px;
    background: #ff751f;
    color: white;
}

.mycvfolio-card-header h2 {
    margin: 0;
    font-size: 1.3em;
}

.mycvfolio-card-body {
    padding: 30px;
}

.mycvfolio-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.mycvfolio-stat:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 600;
    color: #666;
}

/* Badges */
.mycvfolio-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-basic {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-standard {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-pro {
    background: #fff3e0;
    color: #e65100;
}

.badge-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

/* Portfolio Link Display */
.mycvfolio-portfolio-link-display label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.mycvfolio-link-box {
    display: flex;
    gap: 10px;
}

.mycvfolio-link-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--light-bg);
}

/* Quick Actions */
.mycvfolio-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    padding: 10px 0;
}

.mycvfolio-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 16px;
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.mycvfolio-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff9f5a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.mycvfolio-action-btn:hover::before {
    transform: scaleX(1);
}

.mycvfolio-action-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(255, 117, 31, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #fff5ed 100%);
}

.mycvfolio-action-btn:active {
    transform: translateY(-4px);
}

.mycvfolio-action-btn .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.mycvfolio-action-btn:hover .dashicons {
    transform: scale(1.1);
    color: #e56515;
}

.mycvfolio-action-btn span:last-child {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
}

.mycvfolio-action-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.mycvfolio-action-disabled:hover {
    transform: none;
    border-color: #e9ecef;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.mycvfolio-action-disabled:hover::before {
    transform: scaleX(0);
}

.mycvfolio-action-disabled .dashicons {
    color: #adb5bd;
}

.mycvfolio-action-disabled:hover .dashicons {
    transform: none;
    color: #adb5bd;
}

.coming-soon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

@media (max-width: 768px) {
    .mycvfolio-quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .mycvfolio-action-btn {
        padding: 25px 15px;
    }
    
    .mycvfolio-action-btn .dashicons {
        font-size: 40px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .mycvfolio-quick-actions {
        grid-template-columns: 1fr;
    }
}


/* Alerts */
.mycvfolio-alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.mycvfolio-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.mycvfolio-alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.mycvfolio-alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.mycvfolio-alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Page */
.mycvfolio-page {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.mycvfolio-page-header {
    margin-bottom: 40px;
}

.mycvfolio-page-header h1 {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Requests List */
.mycvfolio-requests-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mycvfolio-request-item {
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.request-date {
    color: #666;
    font-size: 14px;
}

.mycvfolio-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-in-progress,
.status-in_progress {
    background: #d1ecf1;
    color: #0c5460;
}

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

.request-details {
    color: #333;
    line-height: 1.6;
}

/* Messages */
#mycvfolio-registration-message,
#mycvfolio-update-message,
#mycvfolio-revamp-message,
#mycvfolio-profile-message,
#mycvfolio-password-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .mycvfolio-registration-hero {
        padding: 30px 15px;
        margin-bottom: 25px;
    }
    
    .mycvfolio-registration-hero h1 {
        font-size: 1.75em;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-feature {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .mycvfolio-packages {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
    
    .mycvfolio-package {
        padding: 25px 20px;
        margin-bottom: 0;
    }
    
    .mycvfolio-package h3 {
        font-size: 1.5em;
    }
    
    .package-price {
        font-size: 2em;
    }
    
    .mycvfolio-form {
        padding: 25px 15px;
    }
    
    .mycvfolio-form h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    
    .mycvfolio-form-section {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .mycvfolio-form-group {
        margin-bottom: 20px;
    }
    
    .mycvfolio-form-group label {
        font-size: 0.95em;
        margin-bottom: 8px;
    }
    
    .mycvfolio-form-group input,
    .mycvfolio-form-group select {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .mycvfolio-form-group.with-icon input {
        padding-left: 45px;
    }
    
    .mycvfolio-form-group .field-icon {
        top: 40px;
    }
    
    .mycvfolio-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .mycvfolio-quick-actions {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mycvfolio-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .mycvfolio-payment-methods {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .payment-method {
        margin-bottom: 0;
    }
    
    .payment-method label {
        padding: 18px 15px;
    }
    
    .bank-transfer-section {
        padding: 20px 15px;
        margin-top: 15px;
    }
    
    .bank-info-card {
        padding: 20px 15px;
    }
    
    .mycvfolio-submit-btn {
        width: 100%;
        padding: 15px;
        font-size: 1.1em;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .mycvfolio-packages {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mycvfolio-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Text utilities */
.text-danger {
    color: var(--danger-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

/* Sophisticated Form Fields with Icons */
.mycvfolio-form-group {
    position: relative;
}

.mycvfolio-form-group.with-icon input {
    padding-left: 45px;
}

.mycvfolio-form-group .field-icon {
    position: absolute;
    left: 15px;
    top: 38px;
    color: #ff751f;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 1;
}

/* Adjust icon position for password fields with helper text */
.mycvfolio-form-group.with-icon small {
    display: block;
    margin-top: 5px;
}

.mycvfolio-form-group input:focus + .field-icon {
    color: #ff751f;
}
