/* ============================================================
   GUEST POST SYSTEM STYLES
   ============================================================ */

.gps-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.gps-header {
    text-align: center;
    margin-bottom: 30px;
}

.gps-header h2 {
    font-size: 32px;
    color: #1a2332;
    margin: 0 0 10px 0;
}

.gps-header p {
    color: #6b7a8f;
    font-size: 18px;
}

/* Alerts */
.gps-alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.gps-alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.gps-alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.gps-alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.gps-alert-icon {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.gps-alert p {
    margin: 5px 0 10px 0;
}

/* Form Sections */
.gps-section {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e8ecf0;
}

.gps-section h3 {
    margin: 0 0 20px 0;
    color: #1a2332;
    font-size: 18px;
    font-weight: 600;
}

.gps-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gps-col {
    display: flex;
    flex-direction: column;
}

.gps-field {
    margin-bottom: 15px;
}

.gps-field:last-child {
    margin-bottom: 0;
}

/* Labels */
label {
    font-weight: 600;
    font-size: 14px;
    color: #1a2332;
    margin-bottom: 6px;
}

.gps-required {
    color: #dc3545;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e8ecf0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    background: #fafbfc;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Counters */
.gps-counter {
    font-size: 13px;
    color: #6b7a8f;
    margin-top: 4px;
}

.gps-count {
    font-weight: 600;
}

/* Upload Area */
.gps-upload-area {
    border: 2px dashed #d0d7e2;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.gps-upload-area:hover {
    border-color: #4CAF50;
    background: #f7f9fc;
}

.gps-upload-area.gps-dragover {
    border-color: #4CAF50;
    background: #e8f5e9;
}

.gps-upload-area.gps-has-image {
    border-color: #4CAF50;
    background: #f0faf4;
    padding: 20px;
}

.gps-upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.gps-upload-area h4 {
    margin: 0 0 8px 0;
    color: #1a2332;
}

.gps-upload-area p {
    margin: 0 0 10px 0;
    color: #6b7a8f;
}

.gps-upload-formats,
.gps-upload-size {
    display: inline-block;
    background: #e8ecf0;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #6b7a8f;
    margin: 3px;
}

.gps-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.gps-upload-placeholder {
    position: relative;
}

.gps-upload-preview {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.gps-upload-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 2px solid #e8ecf0;
}

.gps-remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.gps-remove-image:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Submit Button */
.gps-submit-section {
    text-align: center;
    background: #f7f9fc;
}

.gps-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.gps-btn-primary {
    background: #4CAF50;
    color: #ffffff;
}

.gps-btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.gps-btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.gps-btn-success {
    background: #28a745;
    color: #ffffff;
}

.gps-btn-success:hover {
    background: #218838;
    color: #ffffff;
}

.gps-btn-icon {
    font-size: 20px;
}

.gps-submit-notice {
    margin-top: 15px;
    color: #6b7a8f;
    font-size: 14px;
}

/* Loading State */
.gps-btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .gps-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .gps-section {
        padding: 20px 15px;
    }
    
    .gps-header h2 {
        font-size: 24px;
    }
    
    .gps-upload-area {
        padding: 25px 15px;
    }
    
    .gps-btn-large {
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gps-container {
        padding: 0 10px;
    }
    
    .gps-alert {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}